[GH-ISSUE #3320] [bug]: "Could not send requests" when I use extension and request return a 404 error #1102

Closed
opened 2026-03-16 18:34:32 +03:00 by kerem · 7 comments
Owner

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?

  • I have searched the existing issues

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

  1. Go to https://hoppscotch.io/
  2. Select browser extension as Interceptor
  3. Make GET request to https://api.bitbucket.org/2.0/repositories/tutorials/tutorials.bitbucket.org

Environment

Production

Version

Cloud

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? - [X] I have searched the existing issues ### 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 1. Go to https://hoppscotch.io/ 2. Select browser extension as Interceptor 3. Make GET request to https://api.bitbucket.org/2.0/repositories/tutorials/tutorials.bitbucket.org ### Environment Production ### Version Cloud
kerem 2026-03-16 18:34:32 +03:00
Author
Owner

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

Hi @ajotaops I tried reproducing the issue. On browser, it gives the following,

{
  "type": "error",
  "error": {
    "message": "You may not have access to this repository or it no longer exists in this workspace. If you think this repository exists and you have access, make sure you are authenticated."
  }
}

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/tutorials to inspect further and noticed that tutorials.bitbucket.org repo is not present in the tutorials workspace, instead tutorials.git.bitbucket.org exists.

Can you try the below URL?
https://api.bitbucket.org/2.0/repositories/tutorials/tutorials.git.bitbucket.org

<!-- gh-comment-id:1708920541 --> @SanskritiHarmukh commented on GitHub (Sep 6, 2023): Hi @ajotaops I tried reproducing the issue. On browser, it gives the following, ``` { "type": "error", "error": { "message": "You may not have access to this repository or it no longer exists in this workspace. If you think this repository exists and you have access, make sure you are authenticated." } } ``` 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/tutorials` to inspect further and noticed that `tutorials.bitbucket.org` repo is not present in the `tutorials` workspace, instead `tutorials.git.bitbucket.org` exists. Can you try the below URL? `https://api.bitbucket.org/2.0/repositories/tutorials/tutorials.git.bitbucket.org`
Author
Owner

@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!

<!-- gh-comment-id:1708954661 --> @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!
Author
Owner

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

The response that you are getting on executing these requests is not a typical HTTP 404 error

<!-- gh-comment-id:1708959780 --> @SanskritiHarmukh commented on GitHub (Sep 6, 2023): The response that you are getting on executing these requests is not a typical HTTP 404 error
Author
Owner

@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:

404

Only with extension I see "Could not send requests"

<!-- gh-comment-id:1708967291 --> @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: ![404](https://github.com/hoppscotch/hoppscotch/assets/74736404/eff091df-ba0c-42f4-ab9d-759cc444560a) Only with extension I see "Could not send requests"
Author
Owner

@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

<!-- gh-comment-id:1708975219 --> @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
Author
Owner

@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.

<!-- gh-comment-id:1708978902 --> @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.
Author
Owner

@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

<!-- gh-comment-id:1708986189 --> @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
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#1102
No description provided.