insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

token string variable cause an error on request

Open fsimoes047 opened this issue 2 months ago • 1 comments

Expected Behavior

I have an environment variable with the value of a token string. When I use the variable in a request, I get an error as an answer. But when I paste the entire token string in the request body, the request is successful. There is no difference in the token string inside the environment display and the token string itself, something happens when the token variable is used in the request body. Can you help? Thank you in advance, Best regards, Fernando

Actual Behavior

Error when using env. variable

Reproduction Steps

Is there an existing issue for this?

Which sync method do you use?

  • [ ] Git sync.
  • [ ] Insomnia Cloud sync.
  • [x] Local only

Additional Information

No response

Insomnia Version

2025, 11.6.1

What operating system are you using?

Windows

Operating System Version

Windows 11

Installation method

download from Insomnia site

Last Known Working Insomnia version

NA

fsimoes047 avatar Oct 21 '25 13:10 fsimoes047

@fsimoes047 Can you provide more details about the errors you got when used token from environment variable? Besides, where does your environment variable used in request? Header, Params, Body or somewhere else.

cwangsmv avatar Oct 22 '25 09:10 cwangsmv