[GH-ISSUE #3313] [bug]: Cannot test APIs when status code is >= 400 #1097

Closed
opened 2026-03-16 18:33:04 +03:00 by kerem · 5 comments
Owner

Originally created by @zlojic on GitHub (Sep 4, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3313

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

I want to test some API on my localhost and I'm using PWA with browser extension as interceptor
[Also tried from browsers: Chrome and Firefox].

Response is shown when response status is 200.
If i change in my application to return status 400, with same data [everything is same except status code]

Then Hoppscotch shows this
image

If i export curl from Hoppscotch and try it from command line, it gets response without troubles

Steps to reproduce

  1. Use browser extension
  2. Send request to any API returning status 400
  3. See error

Environment

Production

Version

Cloud

Originally created by @zlojic on GitHub (Sep 4, 2023). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3313 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior I want to test some API on my localhost and I'm using PWA with browser extension as interceptor [Also tried from browsers: Chrome and Firefox]. Response is shown when response status is 200. If i change in my application to return status 400, with same data [everything is same except status code] Then Hoppscotch shows this <img width="972" alt="image" src="https://github.com/hoppscotch/hoppscotch/assets/94617238/5cb4ac6c-cfd4-43ae-9455-ddd38d67b2f0"> If i export curl from Hoppscotch and try it from command line, it gets response without troubles ### Steps to reproduce 1. Use browser extension 2. Send request to any API returning status 400 3. See error ### Environment Production ### Version Cloud
kerem 2026-03-16 18:33:04 +03:00
Author
Owner

@Fillps commented on GitHub (Sep 4, 2023):

I'm seeing the same issue here.

<!-- gh-comment-id:1705663805 --> @Fillps commented on GitHub (Sep 4, 2023): I'm seeing the same issue here.
Author
Owner

@njhames commented on GitHub (Sep 4, 2023):

Same thing for me as well.

<!-- gh-comment-id:1705664319 --> @njhames commented on GitHub (Sep 4, 2023): Same thing for me as well.
Author
Owner

@cr4ck3r-byte commented on GitHub (Sep 4, 2023):

I have to put a console.log(error) to visualize the error.

<!-- gh-comment-id:1705698282 --> @cr4ck3r-byte commented on GitHub (Sep 4, 2023): I have to put a console.log(error) to visualize the error.
Author
Owner

@islamzeki commented on GitHub (Sep 5, 2023):

Hello.
I've been refreshed for the update.
Now, the request cannot be sent with the plugin.

Solution:
Step 1: Select None > Send Req.
Step 2: Select interceptor.

<!-- gh-comment-id:1706530562 --> @islamzeki commented on GitHub (Sep 5, 2023): Hello. I've been refreshed for the update. Now, the request cannot be sent with the plugin. Solution: Step 1: Select None > Send Req. Step 2: Select interceptor.
Author
Owner

@ninjoma commented on GitHub (Sep 6, 2023):

The error comes from the extension's axios implementation returning an exception when responseCode >= 400.

I've submitted a PR that fixes this bug: https://github.com/hoppscotch/hoppscotch-extension/pull/227

<!-- gh-comment-id:1708786952 --> @ninjoma commented on GitHub (Sep 6, 2023): The error comes from the extension's axios implementation returning an exception when responseCode >= 400. I've submitted a PR that fixes this bug: https://github.com/hoppscotch/hoppscotch-extension/pull/227
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1097
No description provided.