thunderclient / thunder-client-support

Thunder Client is a lightweight Rest API Client Extension for VS Code.
https://www.thunderclient.com
Other
3.62k stars 127 forks source link

Run Collection button stucks/freezes when pressed while Collection is being run #1456

Open koynoyno opened 8 months ago

koynoyno commented 8 months ago

Describe the bug Run button in Run Collection window freezes on Stopping... state when pressed while the collection is still running.

Screenshot 2024-01-16 at 4 38 53 pm

To Reproduce

  1. Collection that caused the issue: thunder_bug_reproduce.json (it uses local API, but the issue is not with the API).
  2. Open _Collection > > Run All_ window
  3. Press Run button often, after several runs (~20 in my case) runs will sufficiently slow down, so you'll be able to hit the button while the collection still runs (see video below).

Expected behavior Run button is always available.

Platform:

Are you using the free version/paid version/trial: free

Why are you sure the problem with Thunder Client and not with the API? After the issue, I've run performance testing using Postman using the exact same collection, API endpoints were hit 1200 times during one minute and handled testing well.

koynoyno commented 8 months ago

Video:

https://github.com/rangav/thunder-client-support/assets/46102189/efa023c6-d257-4030-8d4c-01dfcf86710e

For some reason, Thunder Client collection running became way slower after 20+ subsequent runs. First 10 runs were instant, now it requires several seconds to stop running.

rangav commented 8 months ago

Hi @koynoyno

The extension will try some additional initialization. But after that run collection should be as fast as normal.

Can you share full video longer than 7 secs