bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Variables not working in multipart-form body

Open ftrudeau-pelcro opened this issue 11 months ago • 3 comments

For the life of me, can't seam to make this work properly.

This works fine with a JSON body:

{
   "my_attribute_name": "{{my_attribute_value_generated_in_pre_request_script_and_set_using_bru.setVar}}"
}

When using my_attribute_name in a Multipart From body, the variable does not get evaluated. I literally get {{my_attribute_value_generated_in_pre_request_script_and_set_using_bru.setVar}} string posted as-is to the backend for Key my_attribute_name

Version: Windows v1.10.0

ftrudeau-pelcro avatar Mar 12 '24 01:03 ftrudeau-pelcro

I'm also hitting this issue on v1.11.0 on Linux

timwsuqld avatar Mar 13 '24 00:03 timwsuqld

This is a blocker. Any feedback here please?

ftrudeau-pelcro avatar Mar 16 '24 17:03 ftrudeau-pelcro

This is a blocker. Any feedback here please?

The merge request to fix it is still open: https://github.com/usebruno/bruno/pull/1217

But I merged the fix into my fork: https://github.com/Its-treason/bruno/releases/tag/nightly

Its-treason avatar Mar 16 '24 19:03 Its-treason

Great, will close this then.

ftrudeau-pelcro avatar Mar 17 '24 14:03 ftrudeau-pelcro

@ftrudeau-pelcro not sure why you closed it, when it's still an issue in this repository? This should probably remain open until the MR is merged. It's great there is a fork we can use, but that doesn't fix the issue in mainline Bruno.

timwsuqld avatar Mar 19 '24 01:03 timwsuqld