-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
B-bugBug: general classificationBug: general classificationS-unverifiedStatus: Unverified by maintainerStatus: Unverified by maintainer
Description
Expected Behavior
using the generate request collection button with a spec consisting of
servers:
- url: http://localhost:9098/working-time
generates the environment
{
"scheme": "http",
"base_path": "/working-time",
"host": "localhost:9098",
"bearerToken": "bearerToken"
}
which is fine. You should be able to use this environment with your generated requests.
Actual Behavior
However the requests look like this {{ _.base_url }}/login.
base_url is not defined.
So every time you generate a request collection you have to take care of your environement variables.
Reproduction Steps
No response
Is there an existing issue for this?
- I have searched the issue tracker for this problem.
Additional Information
I guess it either needs to be {{ _.scheme}}:{{ _.host}}{{ _.base_path}}/login or you need to generate a composite variable if that's too verbose.
Insomnia Version
2023.5.8
What operating system are you using?
Windows
Operating System Version
Windows 10
Installation method
download
Last Known Working Insomnia version
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
B-bugBug: general classificationBug: general classificationS-unverifiedStatus: Unverified by maintainerStatus: Unverified by maintainer