mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #3313] [bug]: Cannot test APIs when status code is >= 400 #1097
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1097
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
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

If i export curl from Hoppscotch and try it from command line, it gets response without troubles
Steps to reproduce
Environment
Production
Version
Cloud
@Fillps commented on GitHub (Sep 4, 2023):
I'm seeing the same issue here.
@njhames commented on GitHub (Sep 4, 2023):
Same thing for me as well.
@cr4ck3r-byte commented on GitHub (Sep 4, 2023):
I have to put a console.log(error) to visualize the error.
@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.
@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