mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #3682] [bug]: Unclear error for non-empty body in GET requests [Browser extension interceptor only] #1272
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#1272
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 @flleeppyy on GitHub (Dec 20, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3682
Is there an existing issue for this?
Current behavior
Making a request to an endpoint with GET using the browser extension interceptor, with a body (aka, something other than "None"), will report an uninformative error saying "Could not make request. Unable to each the API endpoint. Check your network connection or try a different interceptor and try again".
What's not being told here to the user is that you cannot make a GET request with a body. By default when creating a new request, the method is GET and the body does not default to "None".
This is the error that's shown in the devtools console when you make a GET request with a body. It is not shown to the user in any shape or form.
When setting the body to "none" and making the request, it goes through successfully.
--
Unsuccessful request

Successful request

To be clear, this issue happens when you use the browser extension interceptor. It does not happen when you have no interceptor selected.
Steps to reproduce
Environment
Production
Version
Cloud
@liyasthomas commented on GitHub (Dec 20, 2023):
This is a known issue in v0.28 (#241). We've patched this in v0.29 which should be out in a couple of hours.
https://github.com/hoppscotch/hoppscotch-extension/issues/241#issuecomment-1863815379