question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Part terminated early due to unexpected end of multipart data

See original GitHub issue

Hi, Getting this error often, But don’t know what is the exact scenario. Any idea how to catch this error?

Error: Part terminated early due to unexpected end of multipart data
    at /srv/storage-server/node_modules/dicer/lib/Dicer.js:65:36
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickDomainCallback (internal/process/next_tick.js:218:9)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
aaabhilash97commented, Jun 8, 2018

@jonas060831 We can catch the error by attaching an error event handler to the file object.

file.on('error', ()=>{})
4reactions
iamabdulhaseebcommented, Oct 18, 2021

Any solution on this one?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "Unexpected end of multipart data" in busboy file upload
For me, I received this error when I used \n newlines instead of \r\n newlines when formatting my post body on the client...
Read more >
Error "Unexpected end of multipart data" in busboy file upload ...
This is a bug related to firebase tools. I came across this issue with busboy package today and it cost me 2hrs to...
Read more >
Error "Unexpected End Of Multipart Data" In Busboy ... - ADocLib
The foremost cause for this error is when the name attribute of the file input doesn't match the argument passed to one of...
Read more >
HTTP parse multipart/form-data - Cloud Functions
HTTP parse multipart/form-data ... Cloud Function that parses HTTP form requests. Code sample. C# Go Java ...
Read more >
busboy/multipart.js at master - GitHub - SegmentFault
A streaming parser for HTML form data for node.js. ... busboy/lib/types/multipart.js ... fileStream.destroy(new Error('Unexpected end of file'));.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found