token string variable cause an error on request
- Dominant language
- TypeScript
- Stars
- 40k
- Forks
- 2.4k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
### 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?
- [x] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.
### 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
Contributor guide
Research direction
Start by reproducing the request in Insomnia on Windows 11 with a token stored in an environment variable, then compare it with the same token pasted directly into the request body. The issue provides no source file or test to inspect, and the missing screenshots leave the exact error and request details unspecified. Done would mean the variable and pasted token produce the same successful request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100