Open kirkmadera opened 4 months ago
An environment variable should override a collection variable, but is failing to do so in this case.
graphQlUrl
baseUrl
It should instead resolve to "https://warranty-backend-xxxx.local-rmgmedia.com/admin/graphql"
Collection graphQlUrl variable:
Environment graphQlUrl variable:
Environment baseUrl variable:
However, it is still trying to post to the value produced by "{{baseUrl}}/graphql":
If I replace the variable URL with a string, it works:
Windows
11.1.0
Postman App
Signed In User
No response
This might make the issue more clear. Postman is using a different URL to post to than it is posting to
What it SHOULD be doing
Is there an existing issue for this?
Describe the Issue
An environment variable should override a collection variable, but is failing to do so in this case.
Steps To Reproduce
graphQlUrl
variable is set to "{{baseUrl}}/graphql".baseUrl
variable is set to "https://warranty-backend-xxxx.local-rmgmedia.com"graphQlUrl
variable is set to "https://warranty-backend-xxxx.local-rmgmedia.com/admin/graphql"graphQlUrl
variable as the URL for the query, it resolves to "https://warranty-backend-xxxx.local-rmgmedia.com/graphql" which is the result of "{{baseUrl}}/graphql".It should instead resolve to "https://warranty-backend-xxxx.local-rmgmedia.com/admin/graphql"
Screenshots or Videos
Collection
graphQlUrl
variable:Environment
graphQlUrl
variable:Environment
baseUrl
variable:However, it is still trying to post to the value produced by "{{baseUrl}}/graphql":
If I replace the variable URL with a string, it works:
Operating System
Windows
Postman Version
11.1.0
Postman Platform
Postman App
User Account Type
Signed In User
Additional Context?
No response