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
When trying to send a multipart request using the following parameters: { form: true }, it will throw an error in the underlying request module.
However, it will work properly if you use { form: {} }.
This is because when you construct the underlying request, you assign to the form property the true value and the request module does not like that.
When trying to send a multipart request using the following parameters:
{ form: true }
, it will throw an error in the underlying request module.However, it will work properly if you use
{ form: {} }
.This is because when you construct the underlying request, you assign to the
form
property thetrue
value and the request module does not like that.await icedFrisby.create('Upload file - ${fileName}').post(url, { data: { value: content, options: { filename: fileName }}}, { form: true }).expectStatus(200).run();
Error: MultipartParser.end(): stream ended unexpectedly: state = HEADER_FIELD at MultipartParser.end (node_modules\\formidable\\lib\\multipart_parser.js:326:12)
If needed I can provide a repo to reproduce the issue.
The text was updated successfully, but these errors were encountered: