[GH-ISSUE #1105] Request that returns status code 500 is stuck #387

Closed
opened 2026-03-16 14:59:51 +03:00 by kerem · 12 comments
Owner

Originally created by @blikblum on GitHub (Aug 23, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1105

Originally assigned to: @AndrewBastin on GitHub.

Describe the bug
A GET request that returns status code 500 is stuck (no result is displayed and not possible to cancel) when used in Firefox with the browser extension

To Reproduce
Steps to reproduce the behavior:

  1. Send a request that returns status code 500 (e.g. https://postman-echo.com/status/500)

Expected behavior
The returned value should be displayed

Screenshots

Desktop (please complete the following information):

  • OS: [Windows 10]
  • Browser [Firefox]
  • Version [79]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

EDIT: add info to about browser extension

Originally created by @blikblum on GitHub (Aug 23, 2020). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1105 Originally assigned to: @AndrewBastin on GitHub. **Describe the bug** A GET request that returns status code 500 is stuck (no result is displayed and not possible to cancel) when used in Firefox with the browser extension **To Reproduce** Steps to reproduce the behavior: 1. Send a request that returns status code 500 (e.g. https://postman-echo.com/status/500) **Expected behavior** The returned value should be displayed **Screenshots** -- **Desktop (please complete the following information):** - OS: [Windows 10] - Browser [Firefox] - Version [79] **Smartphone (please complete the following information):** - Device: [e.g. iPhone6] - OS: [e.g. iOS8.1] - Browser [e.g. stock browser, safari] - Version [e.g. 22] **Additional context** Add any other context about the problem here. EDIT: add info to about browser extension
kerem 2026-03-16 14:59:51 +03:00
Author
Owner

@liyasthomas commented on GitHub (Aug 23, 2020):

This isn't an issue with Hoppscotch. Can't reproduce this issue on https://httpbin.org/get.

Most probably, the endpoint https://postman-echo.com/status/500 have CORS restrictions which can be resolved by Turning Proxy mode On.

Goto Settings (https://hoppscotch.io/settings) > Proxy > Turn on Proxy mode.

Proxy Wiki: https://github.com/hoppscotch/hoppscotch/wiki/Proxy

UPDATE: Working when Proxy is turned on.

<!-- gh-comment-id:678717901 --> @liyasthomas commented on GitHub (Aug 23, 2020): This isn't an issue with Hoppscotch. Can't reproduce this issue on `https://httpbin.org/get`. Most probably, the endpoint `https://postman-echo.com/status/500` have CORS restrictions which can be resolved by Turning Proxy mode On. Goto Settings (https://hoppscotch.io/settings) > Proxy > Turn on Proxy mode. Proxy Wiki: https://github.com/hoppscotch/hoppscotch/wiki/Proxy UPDATE: Working when Proxy is turned on.
Author
Owner

@AndrewBastin commented on GitHub (Aug 23, 2020):

@liyasthomas but should the request be stuck then ? shouldn't we just error out ?

<!-- gh-comment-id:678718276 --> @AndrewBastin commented on GitHub (Aug 23, 2020): @liyasthomas but should the request be stuck then ? shouldn't we just error out ?
Author
Owner

@blikblum commented on GitHub (Aug 23, 2020):

When doing a request that returns 200 (https://postman-echo.com/status/200) It works fine, so it does not seems a CORS issue

The same for my local server. When the request returns 200 is ok. The issue only occurs when the same request returns 500

BTW. Enabling proxy (default one) for both 200 and 500 returns: Error: (Proxy Error) Request failed.. Check console for details.
Console: Error: (Proxy Error) Request failed.

<!-- gh-comment-id:678719355 --> @blikblum commented on GitHub (Aug 23, 2020): When doing a request that returns 200 (https://postman-echo.com/status/200) It works fine, so it does not seems a CORS issue The same for my local server. When the request returns 200 is ok. The issue only occurs when the same request returns 500 BTW. Enabling proxy (default one) for both 200 and 500 returns: Error: (Proxy Error) Request failed.. Check console for details. Console: Error: (Proxy Error) Request failed.
Author
Owner

@blikblum commented on GitHub (Aug 23, 2020):

https://httpbin.org/status/500 also is stuck

<!-- gh-comment-id:678720141 --> @blikblum commented on GitHub (Aug 23, 2020): https://httpbin.org/status/500 also is stuck
Author
Owner

@liyasthomas commented on GitHub (Aug 23, 2020):

I'll look into this.

<!-- gh-comment-id:678720880 --> @liyasthomas commented on GitHub (Aug 23, 2020): I'll look into this.
Author
Owner

@liyasthomas commented on GitHub (Aug 23, 2020):

@blikblum I can't reproduce this issue at my end. Can you confirm the issue still persist for you.

<!-- gh-comment-id:678781893 --> @liyasthomas commented on GitHub (Aug 23, 2020): @blikblum I can't reproduce this issue at my end. Can you confirm the issue still persist for you.
Author
Owner

@blikblum commented on GitHub (Aug 24, 2020):

I did some more tests:

  • Firefox 79 Desktop (windows 10): stuck
  • Firefox Mobile (Android): works
  • MS Edge (Chromium): works

So the issue is specific for Firefox in desktop

<!-- gh-comment-id:678852322 --> @blikblum commented on GitHub (Aug 24, 2020): I did some more tests: - Firefox 79 Desktop (windows 10): stuck - Firefox Mobile (Android): works - MS Edge (Chromium): works So the issue is specific for Firefox in desktop
Author
Owner

@blikblum commented on GitHub (Aug 24, 2020):

Found the reason: if i disable the Hoppscotch Browser Extension, it works

<!-- gh-comment-id:678853917 --> @blikblum commented on GitHub (Aug 24, 2020): Found the reason: if i disable the Hoppscotch Browser Extension, it works
Author
Owner

@liyasthomas commented on GitHub (Aug 24, 2020):

I think it's only a minor browser specific issue with Extension. On both mobile and PC there seems to be no issue. @AndrewBastin

<!-- gh-comment-id:678854684 --> @liyasthomas commented on GitHub (Aug 24, 2020): I think it's only a minor browser specific issue with Extension. On both mobile and PC there seems to be no issue. @AndrewBastin
Author
Owner

@AndrewBastin commented on GitHub (Aug 24, 2020):

@blikblum Thanks for the info, I will look into it.

<!-- gh-comment-id:678855158 --> @AndrewBastin commented on GitHub (Aug 24, 2020): @blikblum Thanks for the info, I will look into it.
Author
Owner

@AndrewBastin commented on GitHub (Aug 24, 2020):

Turns out it is an issue with the Firefox's strong memory ownership system. I have fixed it in the extension with commit github.com/hoppscotch/hoppscotch-extension@c760da9ecb

The fix will be rolled out to Firefox by the end of the day with the 0.17 extension update.

Closing the issue.

<!-- gh-comment-id:678879811 --> @AndrewBastin commented on GitHub (Aug 24, 2020): Turns out it is an issue with the Firefox's strong memory ownership system. I have fixed it in the extension with commit https://github.com/hoppscotch/hoppscotch-extension/commit/c760da9ecbe587385ab8706d5c9cc59372f08c68 The fix will be rolled out to Firefox by the end of the day with the 0.17 extension update. Closing the issue.
Author
Owner

@blikblum commented on GitHub (Aug 24, 2020):

Many thanks

<!-- gh-comment-id:678881904 --> @blikblum commented on GitHub (Aug 24, 2020): Many thanks
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#387
No description provided.