Skip to content

endless loop if env. variables pointing to non exisiting env #1699

@db-pw-rocker

Description

@db-pw-rocker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions