usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
25.67k stars 1.17k forks source link

POST request with Multipart Form #3139

Closed lfpmartin closed 4 days ago

lfpmartin commented 1 week ago

I have checked the following:

Describe the bug

Error on Bruno while trying to send a POST request with multiparts params:

1st Part is a CSV File 2nd Part is a simple Json

Error invoking remote method 'send-http-request': Error: TypeError: Cannot read properties of undefined (reading 'value')

If the request is sent without body, it reaches the server. When including any of the params, it breaks.

.bru file to reproduce the bug

meta {
  name: TaxItems
  type: http
  seq: 3
}

post {
  url: https://{{host}}/v1.0/api/Forms/TaxItems
  body: multipartForm
  auth: bearer
}

headers {
  X-Request-Id: 37BAC21C94331EDE9499576224B64C81
}

auth:bearer {
  token: {{access_token_set_by_collection_script}}
}

body:multipart-form {
  fileContent: @file(C:\template 0810.csv)
  requestData: '''
    {
        "externalReportingEntity": "00000069"
    }
  '''
}

Screenshots/Live demo link

image

lfpmartin commented 1 week ago

Yeah, few of these issues now for different methods. Hoping a fix is passed soon. Temporary solution is to downgrade to previous version.

3139, #3135, #3129

Sorry... I made a mistake on flagging that "I use the newest version of bruno". I didn't realize that version 29 was released yesterday. I'm still on 28.

mjhcorporate commented 1 week ago

This bug has been fixed in v1.29.1 -- see this comment. Can you please retest?

lfpmartin commented 4 days ago

Just updated to v1.29.1 and it works fine!