[GH-ISSUE #2897] [bug]: Time counter doesn't stop (ever) after a request was cancelled #938

Closed
opened 2026-03-16 17:45:16 +03:00 by kerem · 7 comments
Owner

Originally created by @cpt-westphalen on GitHub (Jan 6, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2897

Originally assigned to: @aitchnyu on GitHub.

This might be a simple issue to solve:

I use the web Hoppscotch app.
If my API has a bug and doesn't respond to a request, Hopp allows me to click the big "cancel" button to stop the listening.

After that, every other request I make happens to -- as fast as the response time is -- never clear the time counter again:

image

The solution is probably just checking the counter function and the cancel button function to see what's missing.

Thank you all for this amazing app, by the way. :)

Originally created by @cpt-westphalen on GitHub (Jan 6, 2023). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2897 Originally assigned to: @aitchnyu on GitHub. This might be a simple issue to solve: I use the web Hoppscotch app. If my API has a bug and doesn't respond to a request, Hopp allows me to click the big "cancel" button to stop the listening. After that, every other request I make happens to -- as fast as the response time is -- never clear the time counter again: ![image](https://user-images.githubusercontent.com/97403327/211075892-c415d03e-a189-46aa-84df-cecf2210855c.png) The solution is probably just checking the counter function and the cancel button function to see what's missing. Thank you all for this amazing app, by the way. :)
kerem closed this issue 2026-03-16 17:45:21 +03:00
Author
Owner

@Imaginarybandit commented on GitHub (Jan 23, 2023):

Hello, I would like to tackle this issue

<!-- gh-comment-id:1400390108 --> @Imaginarybandit commented on GitHub (Jan 23, 2023): Hello, I would like to tackle this issue
Author
Owner

@liyasthomas commented on GitHub (Jan 23, 2023):

Hi @Imaginarybandit, feel free to look into this bug.

<!-- gh-comment-id:1400406865 --> @liyasthomas commented on GitHub (Jan 23, 2023): Hi @Imaginarybandit, feel free to look into this bug.
Author
Owner

@aitchnyu commented on GitHub (Feb 2, 2023):

@cpt-westphalen I'm having a hard time reproducing this bug. Could you describe how to trigger it in steps I can do?

<!-- gh-comment-id:1413737621 --> @aitchnyu commented on GitHub (Feb 2, 2023): @cpt-westphalen I'm having a hard time reproducing this bug. Could you describe how to trigger it in steps I can do?
Author
Owner

@cpt-westphalen commented on GitHub (Feb 2, 2023):

@aitchnyu This is it:

  1. New folder, npm init -y, npm i express;
  2. Create index.js file on root;
  3. Paste this:
// index.js
const express = require("express");
const app = express();

app.get("/", (req, res) => console.log("this wont reply, ever."));
app.get("/reply", (req, res) => res.json({ hello: "world" }));

app.listen(3000, () => console.log("Serving at: http://localhost:3000/"));

  1. Run node index.js on terminal;
  2. Open Hop on latest Firefox (did not test on Chrome);
  3. Configure it to use the Firefox extension to hit the localhost;
  4. On Hop, select GET, paste/type http://localhost:3000/reply and send request. // => it will answer with < 100ms.
  5. Keep GET, paste/type http://localhost:3000/ and send request. // => it will load for several seconds
  6. Before the loading bar gets to the end, click the blue Cancel button to stop listening for response.
  7. Keep GET, paste/type http://localhost:3000/reply and send request. // => it will answer with a huge response time
<!-- gh-comment-id:1414053911 --> @cpt-westphalen commented on GitHub (Feb 2, 2023): @aitchnyu This is it: 1. New folder, `npm init -y`, `npm i express`; 2. Create `index.js` file on root; 3. Paste this: ``` // index.js const express = require("express"); const app = express(); app.get("/", (req, res) => console.log("this wont reply, ever.")); app.get("/reply", (req, res) => res.json({ hello: "world" })); app.listen(3000, () => console.log("Serving at: http://localhost:3000/")); ``` 4. Run `node index.js` on terminal; 5. Open [Hop](https://hoppscotch.io/) on latest Firefox (did not test on Chrome); 6. Configure it to use the Firefox extension to hit the localhost; 7. On Hop, select `GET`, paste/type `http://localhost:3000/reply` and send request. // **=> it will answer with < 100ms.** 8. Keep `GET`, paste/type `http://localhost:3000/` and send request. // **=> it will load for several seconds** 9. Before the loading bar gets to the end, click the blue `Cancel` button to stop listening for response. 10. Keep `GET`, paste/type `http://localhost:3000/reply` and send request. // **=> it will answer with a huge response time**
Author
Owner

@abrahamparayil commented on GitHub (Feb 5, 2023):

@cpt-westphalen I tried to reproduce the bug using the steps you have mentioned here but I am unable to reproduce the issue. The second GET request mentioned in step 10 responds back almost instantaneously.

Cc: @aitchnyu

<!-- gh-comment-id:1418273402 --> @abrahamparayil commented on GitHub (Feb 5, 2023): @cpt-westphalen I tried to reproduce the bug using the steps you have mentioned here but I am unable to reproduce the issue. The second `GET` request mentioned in step 10 responds back almost instantaneously. Cc: @aitchnyu
Author
Owner

@aitchnyu commented on GitHub (Feb 6, 2023):

I can confirm for Firefox and hoppscotch.io. Will check with other users to see if its a fluke.

This is my experience. I called /, waited, called /reply, got 15743 ms, called /reply again and got a 37 ms. But I got many cases of: 3-5 subsequent requests to /reply will also have high response times till they converge into the milliseconds range.

Screencast from 2023-02-06 20-08-02.webm

<!-- gh-comment-id:1419192540 --> @aitchnyu commented on GitHub (Feb 6, 2023): I can confirm for Firefox and hoppscotch.io. Will check with other users to see if its a fluke. This is my experience. I called `/`, waited, called `/reply`, got 15743 ms, called `/reply` again and got a 37 ms. But I got many cases of: 3-5 subsequent requests to `/reply` will also have high response times till they converge into the milliseconds range. [Screencast from 2023-02-06 20-08-02.webm](https://user-images.githubusercontent.com/5927706/217001056-fca2599e-b945-4fbb-bcea-78afc25dc198.webm)
Author
Owner

@Vansh-Baghel commented on GitHub (Feb 7, 2023):

@aitchnyu I guess that fixes the issue, right?

<!-- gh-comment-id:1420481579 --> @Vansh-Baghel commented on GitHub (Feb 7, 2023): @aitchnyu I guess that fixes the issue, right?
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#938
No description provided.