mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #1752] Send double request [bug] #557
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#557
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 @hedior03 on GitHub (Aug 1, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1752
Originally assigned to: @AndrewBastin on GitHub.
Describe the bug
Every request I make from Hoppscotch is sent twice, 10ms apart.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Get one request.
Desktop (please complete the following information):
@liyasthomas commented on GitHub (Aug 1, 2021):
Deu to
CORSpolicy in browsers, every request has a Preflight request.Please make sure if the first request was a pre-flight request. Read more about this behavior on StackOverflow.
@hedior03 commented on GitHub (Aug 2, 2021):
I appreciate your answer, I checked the documentation and it doesn't seem to be this, given that both requests are exactly the same method of my request (GET or POST), and Preflight should be a OPTIONS method request.
@liyasthomas commented on GitHub (Aug 2, 2021):
Thanks for the detailed explanation. May I know whether if you've enabled any Hoppscotch interceptors in Settings? "Proxy mode" or "Extensions" ?
@hedior03 commented on GitHub (Aug 2, 2021):
Since I'm testing something locally, I'm using the extension. But not any proxy.
@liyasthomas commented on GitHub (Aug 2, 2021):
Thank you, we'll look into it.
@hedior03 commented on GitHub (Aug 2, 2021):
I just fixed it. I reckon that i had the PWA installed and both (PWA and website) were executing the request once I pressed Send.
I checked from a private window and realising that it worked fine, tried deleting all PWA installed. The only remaining problem is that i can't replicate the error.
Apologies for the concerns and thanks for your time.
@liyasthomas commented on GitHub (Aug 2, 2021):
Glad it worked out. Will track this behaviour and fix it as soon as possible.
@GorvGoyl commented on GitHub (Sep 19, 2021):
@liyasthomas I'm facing the same issue i.e. every call I make from hoppscotch web client (using chrome extension) hits my local api server twice! Both the requests are of type
POST. Issue doesn't happen if I use some desktop client like Postman. let me know if you need further details.Also, should I post a new bug since you closed this issue?
@liyasthomas commented on GitHub (Sep 19, 2021):
@GorvGoyl please provide more details on the issue you're having.
@GorvGoyl commented on GitHub (Sep 19, 2021):
OS: Win 10
Browser: Microsoft Edge Browser
Version 93.0.961.47 (Official build) (64-bit)
@liyasthomas let me know if I missed something
@liyasthomas commented on GitHub (Sep 19, 2021):
@GorvGoyl let me know how to reproduce the issue. Also have you enabled any interceptor like browser extension / proxy?
@GorvGoyl commented on GitHub (Sep 19, 2021):
Yes, I'm using browser extension.
To reproduce this issue, You could create a local nodejs server in VSCode (I'm using Firebase cloud functions) and make the rest api call (
POST) to it from Microsoft Edge browser using https://hoppscotch.io/ with it's browser extension installed.@liyasthomas commented on GitHub (Sep 19, 2021):
Thanks for the detailed information. Will let you know once it's fixed. Thank you.
@mandaputtra commented on GitHub (Oct 1, 2021):
I can confirm that for now, this bug is resolved. I don't see any double request when I test. Using Brave Browser (with latest Chromium). It should behave the same for Microsoft Edge/Chrome since it is just chromium based browser.
@mandaputtra commented on GitHub (Oct 5, 2021):
This actually somewhat reproducible somewhat not. Could you open this one again @liyasthomas ? I can reproduce it on my windows machine but not on my linux one. Same browser ~ in the meantime I'll figure it out why it happen.
@liyasthomas commented on GitHub (Oct 5, 2021):
Feel free to reopen if you can provide steps to reproduce the issue.
@long2ice commented on GitHub (Oct 30, 2021):
Same issue here, use chrome PWA, but everything is fine after reinstall PWA
@LaPoPvLe commented on GitHub (Mar 22, 2022):
same issue
in chrome, this is fine.
but pwa still send double request.like replay all request's header and content is same, not options method in cross domain.
@levrik commented on GitHub (Feb 27, 2023):
Having the same issue. I might had installed Hoppscotch as PWA before already but I'm not sure if it was on this exact device. The interesting part is that if I disable using the extension, a single
POSTrequest still hits the locally running backend but the UI tells me that it was unable to reach the endpoint (which is not true).@KrofDrakula commented on GitHub (Jan 25, 2024):
I just reproduced this bug when using Hoppscotch as a Chrome PWA with the browser extension used as proxy with no additional configuration.
Uninstalling the PWA and then reinstalling it looks like it resolved the issue for me so far.