mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #1426] Sending same multiple request on send #461
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#461
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 @torrayne on GitHub (Jan 12, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1426
Describe the bug
Every time I click send it sends 3 requests.
To Reproduce
Click send
Expected behavior
Only send one request when you click send
Desktop (please complete the following information):
Additional context
It's not just on my local machine. Sending request to public domains sends 3 requests.
@AndrewBastin commented on GitHub (Jan 12, 2021):
@djatwood Do you have the extension installed ?
@torrayne commented on GitHub (Jan 12, 2021):
Yes
@liyasthomas commented on GitHub (Jan 12, 2021):
@djatwood are you mentioning pre-flight request?
@torrayne commented on GitHub (Jan 12, 2021):
No, it's sending 3 full request. When testing a form it sends 3 POST requests and creates 3 submissions.
@liyasthomas commented on GitHub (Jan 13, 2021):
An issue has been identified with our browser extension which is making multiple requests (~3) at once. We're working on a fix. Will update ASAP.
@AndrewBastin commented on GitHub (Jan 13, 2021):
Umm, the fix should be live in Firefox!
Please update your extension (it should auto update tho)
And then please ping back if it persists.
@torrayne commented on GitHub (Jan 13, 2021):
I done a tiny bit of testing and it looks like it's fixed. I'll do some real testing tomorrow morning.
@AndrewBastin commented on GitHub (Jan 14, 2021):
@djatwood is it fixed ?
Closing meanwhile
@torrayne commented on GitHub (Jan 14, 2021):
I haven't had it happen again since the update
@njk18 commented on GitHub (Nov 7, 2022):
I'm having the same issue, only the request is being sent 4 times.
Desktop:
@AndrewBastin commented on GitHub (Nov 7, 2022):
@njk18 can I have more details about the request ? like the HTTP method used, content type (if any), body data (just a summary of what it is enough) and stuff like that.
If you can get this from the endpoint, some details around what requests were you getting on the endpoint (like the method, data (if any) etc.) would be useful as well.
@njk18 commented on GitHub (Nov 8, 2022):
@AndrewBastin I did a page refresh which seems to have resolved the problem.
The request used the POST HTTP method with an application/json body which consisted of only string and integer values.
The endpoint was localhost:8084.
At the time, I went back and forth resetting the database and switching between Hoppscotch and Postman to validate that the problem originated from Hoppscotch.
I'm not sure if this helps, I'll update this issue if the problem occurs again.
@SamuelJansen commented on GitHub (Nov 21, 2022):
so am I
GET operations as well
@LukeFranky commented on GitHub (Nov 24, 2022):
Same thing happens to me. I was getting 4 requests each time, but restarting the Chrome app brought this down to 2.
I am using the Chrome app and extension because I am posting JSON to a localhost server.
I have attached a screenshot from Telerik Fiddler showing two identical requests from the same 'Send' click.
OS: Windows 11 Pro (Version 10.0.22621 Build 22621)
Chrome: 107.0.5304.107
Browser Extension: 0.25
@ElTimuro commented on GitHub (Jan 6, 2023):
Same Issue, Request comes 2x. Looks like this is not fixed at lest in Chrome
OS: Windows 10 Pro
Chrome: 108.0.5359.125
Browser Extension: 0.25
@AndrewBastin commented on GitHub (Jan 6, 2023):
Due to the amount of reports I am reopening the issue.
For people, who are posting "Same issue" comments. Please add the following details to help out with the debugging process.
@hms5232 commented on GitHub (Feb 3, 2023):
One click, two request.
I use to develop API, request localhost server. The POST method requests has bearer token in header, JSON body like:
@hms5232 commented on GitHub (Feb 6, 2023):
After restarting, it seems good and work fine again. 😕 Maybe something went wrong during updating from old version.
@ItsEthra commented on GitHub (Mar 1, 2023):
Any updates on it? I am experiencing the same issue.
Happens with GET, POST requests, could be others as well I have not checked though.
@agarleanu commented on GitHub (Mar 21, 2023):
I tried restarting, this issue keeps occurring.
Well, at least it's motivating me to implement some idempotency in my system, I guess.
@RVFET commented on GitHub (Apr 2, 2023):
Using Chrome Web App on Win11, Browser Extension installed (otherwise localhost server don't work somehow) and facing the same issue, each request gets sent thrice. It's very annoying as my app does some scraping when receiving certain "POST" request and app forcibly overloads the api. This is my all time fav API testing client, please update it if possible. Thank you for all your effort!
@sons-of-titus commented on GitHub (May 12, 2023):
Same thing with LibreWolf(firefox) extension on archlinux.
1 click 3 requests
Extension version 0.25
@catch-songcs commented on GitHub (Jul 10, 2023):
this issue keeps occurring
but it fixed when I restart application
@lcdss commented on GitHub (Jul 13, 2023):
Same here on firefox and latest version of everything; every request is made twice, but after restarting the browser it back to work as expected.
@cabralski commented on GitHub (Aug 24, 2023):
I am having the same problem, sometimes it sends exactly three times. When it happens, I CTRL + SHIFT + R, and it stops sending the POST requests thrice.
@tiller commented on GitHub (Aug 29, 2023):
Hoppscrotch 2023.4.8 installed as PWA on Chromium 116.0.5845.110 running on Ubuntu 22.04.

With browser extension 0.25 enabled, a single click to my POST query leads to 2 calls :
Not gonna lie, that's kind of a deal breaker for me... especially when the issue is 2+ years old...
Query is:
With an excel file as "importFile".
And as for @cabralski, refreshing the page fixed the issue (for now)
@Spotnyk commented on GitHub (Nov 2, 2023):
I just spent two hours trying to debug why my code was doing this; eventually narrowing it down to hopscotch.
Three things:
OS: Windows 11 64bit
Interceptor: Chrome v0.25 / (Chrome 118.0.5993.118)
Method:
POSTURL:
https://partner-dev-spot.domain.com/ingest/<<spotAuthHash>>Headers:
application/jsonPayload:
(not the cleanest setup, but the requesting source is archaic; requiring some odd choices 😅 )
@kiranmurali93 commented on GitHub (Nov 6, 2023):
Having the same issue
OS: Mac OS 14
Browser: Firefox
Extension Version: 0.25
For me its sending 2 request irrespective of the method of the request.
@prom00 commented on GitHub (Nov 10, 2023):
I'm getting 2 requests server side too. Only 1 in the hoppscotch history tab.
While debugging, the complete request is incoming twice on our REST NestJS server.
OS: Windows 11 Pro Version: 10.0.22621 Build 22621
Browser Chrome Version: 119.0.6045.106
Extension version: 0.25
The
CTRL+SHIFT+Rfrom @cabralski fixed my issues too.I've tried to get double requests again, but can't seem to reproduce it yet.
@cabralski commented on GitHub (Nov 11, 2023):
This problem, sadly, had to made me stop using Hoppscotch and use another HTTP client instead. 😓
@prom00 commented on GitHub (Nov 13, 2023):
And today we have the same issue. Looks like it happens due to the origin being "gone" from the hoppscotch chrome plugin:

Our remote origin was missing again this morning. I then readded it. Now when I do requests, I get 2 requests again.
We have the directory where hoppscotch is hosted secured with basic folder authentication, to prevent everyone from registering or seeing our data.
Doing a
CTRL+SHIFT+Ragain, resolved the double requests again.@dakujem commented on GitHub (Jan 10, 2024):
Interesting... this was happening to me too in Firefox/Windows. All the requests had been duplicated. I got here while searching.
The issue is gone after hard-reloading the site. 🤷♂️
@david1542 commented on GitHub (Jan 10, 2024):
This happens to me to :( It sends 2 requests when I send POST requests. I'm on Google Chrome
@kdomic commented on GitHub (Jan 12, 2024):
Do we know how to fix this? We have the same problem. Most of the time everything works fine, but at some random points it starts sending 2/3/4 requests on one call. If someone has a suggestion on how to fix this, we need it as soon as possible. Thanks.
@liyasthomas commented on GitHub (Jan 12, 2024):
@kdomic as per this comment: https://github.com/hoppscotch/hoppscotch/issues/1426#issuecomment-1885086889, can you try reloading and see if the issue persists?
@prom00 commented on GitHub (Jan 12, 2024):
The reload is only a temporary fix and needs to be done everytime the issue occurs again.
@kdomic commented on GitHub (Jan 15, 2024):
Unfortunately reload did not help. But if it did, that is not a fix for this problem. That is just a temporary solution. We need a fix so that we don't get this error randomly. After some time this problem disappears so that we can use HS right now. But at any point this can be a problem again.
@928597712 commented on GitHub (Jan 23, 2024):
I found a very strange way to reproduce it.Using Chrome (it does not reproduce with Edge, I haven't tried with Firefox), adding the URL to the "bookmark bar" (it doesn't reproduce when added to "bookmarks"), and then clicking the added bookmark to enter the website, clicking "send" will trigger this issue.If you refresh the website with F5 midway, it will return to normal. The issue only occurs when entering the website through the bookmark bar.