bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Pre Request vars in request not getting proper value

Open PAllisonVSO opened this issue 9 months ago • 7 comments

I have checked the following:

  • [X] I use the newest version of bruno.
  • [X] I've searched existing issues and found nothing related to my issue.

Describe the bug

My apologies if this is reported, my search skills did not render it. After version 1.14 of bruno, Pre Request vars that are used in the request do not have the proper value the first time they are called. They may have a value from another request or no value. Submitted the request a second time yields the expected results.

.bru file to reproduce the bug

meta { name: test type: http seq: 2 }

get { url: https://github.com/{{repository}} body: none auth: none }

vars:pre-request { repository: usebruno }

Screenshots/Live demo link

First submit image Second submit image

PAllisonVSO avatar May 01 '24 15:05 PAllisonVSO

Hey @PAllisonVSO

Thanks for bringing this to our attention. A fix for this issue will be included in the upcoming release. Thank you for your patience!

lohit-1 avatar May 01 '24 15:05 lohit-1

I have tested version 1.17.0. The variable does get assigned the first time, but if I change the value, the new value is is not used the first time. So it takes two clicks to get the proper value to be sent after the initial usage.

image

PAllisonVSO avatar May 14 '24 12:05 PAllisonVSO

I have tested version 1.17.0. The variable does get assigned the first time, but if I change the value, the new value is is not used the first time. So it takes two clicks to get the proper value to be sent after the initial usage.

Hi @PAllisonVSO, I had the same problem, thank you for reporting it, you saved me some headache. Looks like the newest version 1.18.0, fixed the issue, can you confirm it?

ggiambo avatar May 23 '24 05:05 ggiambo

@ggiambo I am still seeing this issue on version 1.18.0

conor-carville avatar May 23 '24 10:05 conor-carville

@PAllisonVSO

The issue has been resolved in v1.18.0.

Please let me know if this is still an issue for you.

https://github.com/usebruno/bruno/assets/25679466/9b042c5e-57d0-4207-abbe-d04a55ea585f

lohxt1 avatar May 23 '24 12:05 lohxt1

@conor-carville

Could you please share a sample bru file to reproduce the issue you're facing ? That would be really helpful.

lohxt1 avatar May 23 '24 12:05 lohxt1

I am out of the office until next week. I will test it as soon as I can!

PAllisonVSO avatar May 23 '24 13:05 PAllisonVSO

I have checked and verified that this issue is fixed as reported.

PAllisonVSO avatar May 26 '24 12:05 PAllisonVSO