mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #3320] [bug]: "Could not send requests" when I use extension and request return a 404 error #1102
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#1102
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 @ajotaops on GitHub (Sep 6, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3320
Is there an existing issue for this?
Current behavior
Hello,
I'm encountering an issue while using the browser extension of https://hoppscotch.io/. When I attempt to make requests from certain pages, I receive an error message stating "Could not send requests."
These requests work fine if I do on the browser.
Additional Information:
Extension version: v0.25
Steps to reproduce
Environment
Production
Version
Cloud
@SanskritiHarmukh commented on GitHub (Sep 6, 2023):
Hi @ajotaops I tried reproducing the issue. On browser, it gives the following,
Indicating that you might not have either the correct permission to access the repository or it does not exist. I made a request for
https://api.bitbucket.org/2.0/repositories/tutorialsto inspect further and noticed thattutorials.bitbucket.orgrepo is not present in thetutorialsworkspace, insteadtutorials.git.bitbucket.orgexists.Can you try the below URL?
https://api.bitbucket.org/2.0/repositories/tutorials/tutorials.git.bitbucket.org@ajotaops commented on GitHub (Sep 6, 2023):
Hi @SanskritiHarmukh ,
I apologize if my previous message was not clear enough regarding the problem I am experiencing. The issue I am seeing is not related to the 404 response of the example.
The link I provided earlier, I already knew it does not return a 200 code, but the problem I want to point out is that when I make a request that receives an error response code, Hoppscotch (only with interceptor extension) does not display the expected response (in this case, the 404). Instead, it shows a generic error message stating "Could not send requests,", a problem of network.
To clarify this, I can provide another example with a less confusing API. When I make a GET request to https://pokeapi.co/api/v2/pokemon/ditto via the extension, I correctly see a 200 response code on hoppscotch.
However, when I make a request to a resource that returns a 404 response code, such as https://pokeapi.co/api/v2/pokemon/noexists, that's when I encounter the "Could not send requests" problem instead of seeing the expected 404. But if I do without the extension I can see 404.
I change the title with the issue.
Thanks for reviewing!
@SanskritiHarmukh commented on GitHub (Sep 6, 2023):
The response that you are getting on executing these requests is not a typical HTTP 404 error
@ajotaops commented on GitHub (Sep 6, 2023):
What do you mean? When I make the request without the Interceptor or with the proxy I do see the 404 request normally:
Only with extension I see "Could not send requests"
@SanskritiHarmukh commented on GitHub (Sep 6, 2023):
Okay I was talking about the BitBucket one. With the other requests I was just checking on my end too
@SanskritiHarmukh commented on GitHub (Sep 6, 2023):
This seems like a problem, I tested with few more endpoints. Thank you for reporting @ajotaops we'll look into it w.r.t extention interceptor.
@ajotaops commented on GitHub (Sep 6, 2023):
Sorry i saw this is duplicated
https://github.com/hoppscotch/hoppscotch/issues/3313
And there is a PR with possible solution https://github.com/hoppscotch/hoppscotch-extension/pull/227
I close this as duplicated