endless loop if env. variables pointing to non exisiting env
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.
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
Thanks @db-pw-rocker for reporting the bug.
We will verify and fix it asap.
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.