You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched existing issues and found nothing related to my issue.
Describe the bug
Took us a while to figure this one out, because at first we thought this must be the #1910 bug, but apparently it's a little bit more nuanced than that.
Bug: When creating request vars that reference environment vars in the POST body of a request (both TEXT and JSON), you cannot list them subsequently in the POST body or any subsequent replacements (beyond the first!) are not done.
Example. I have two request vars that reference environment vars:
These are valid secrets in my active environment and you can see that in the request they are listed green due to their interpolation (irrelevant UUIDs to display the bug):
And I use them in my POST body as such:
In this case, only the FIRST value will be replaced as shown in the timeline of the request:
This is true for any amount of subsequent request var -> env var interpolations.
BUT if we throw a local request var (without interpolation) in between, it will work, e.g. this request:
Does suddenly interpolate both reference values properly:
Looks like some sort of loop error when interpolating nested variables multiple times in a row.
---- edit: This was tested on both Windows and Linux platforms and reproducible on both.
Thank you for building great software, we are very happy to start switching over to using Bruno.
The text was updated successfully, but these errors were encountered:
I have checked the following:
Describe the bug
Took us a while to figure this one out, because at first we thought this must be the #1910 bug, but apparently it's a little bit more nuanced than that.
Bug: When creating request vars that reference environment vars in the POST body of a request (both TEXT and JSON), you cannot list them subsequently in the POST body or any subsequent replacements (beyond the first!) are not done.
Example. I have two request vars that reference environment vars:
These are valid secrets in my active environment and you can see that in the request they are listed green due to their interpolation (irrelevant UUIDs to display the bug):
And I use them in my POST body as such:
In this case, only the FIRST value will be replaced as shown in the timeline of the request:
This is true for any amount of subsequent request var -> env var interpolations.
BUT if we throw a local request var (without interpolation) in between, it will work, e.g. this request:
Does suddenly interpolate both reference values properly:
Looks like some sort of loop error when interpolating nested variables multiple times in a row.
---- edit: This was tested on both Windows and Linux platforms and reproducible on both.
Thank you for building great software, we are very happy to start switching over to using Bruno.
The text was updated successfully, but these errors were encountered: