Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST request with Multipart Form #3139

Closed
1 of 2 tasks
lfpmartin opened this issue Sep 18, 2024 · 3 comments
Closed
1 of 2 tasks

POST request with Multipart Form #3139

lfpmartin opened this issue Sep 18, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@lfpmartin
Copy link

lfpmartin commented Sep 18, 2024

I have checked the following:

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

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
Copy link
Author

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
Copy link
Contributor

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

@lfpmartin
Copy link
Author

Just updated to v1.29.1 and it works fine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants