thunder-client-support icon indicating copy to clipboard operation
thunder-client-support copied to clipboard

endless loop if env. variables pointing to non exisiting env

Open db-pw-rocker opened this issue 7 months ago • 2 comments

Describe the bug Once you start a request which sets a variable for an non existing environment, the interface hangs and you cannot cancel the request.

Image

To Reproduce write a request with a scipting script which sets up a varialbe on a missing env.

for example: let now = new Date() tc.setVar('helloWorld', 'hello' + now.toISOString(), "local")

Expected behavior Thunderclient should give back an error to point out the issue "Env not found", oder "Variable cannot be set"

Platform:

  • OS: WIN and CI/CD Gitlab v2.35.2 - (2025-06-16)

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

db-pw-rocker avatar Jul 02 '25 06:07 db-pw-rocker

Thanks @db-pw-rocker for reporting the bug.

We will verify and fix it asap.

rangav avatar Jul 02 '25 06:07 rangav

Hi @db-pw-rocker, I tried to reproduce the issue with the same script and setup, but it worked fine on my end. The request completed without hanging. Let me know if I’m missing any specific steps.

Meanwhile, you can check the script errors in the logs — it will show that you need to enable the local or global environment if it’s missing.

vinod-tc avatar Jul 04 '25 15:07 vinod-tc