Skip to content

Error: Malformed part header #268

@dlanorf

Description

@dlanorf
Error: Malformed part header
    at SBMH.ssCb [as _cb] (node_modules\busboy\lib\types\multipart.js:380:41)
    at feed (node_modules\streamsearch\lib\sbmh.js:219:14)
    at SBMH.push (node_modules\streamsearch\lib\sbmh.js:104:16)
    at Multipart._write (node_modules\busboy\lib\types\multipart.js:549:19)
    at writeOrBuffer (internal/streams/writable.js:358:12)
    at Multipart.Writable.write (internal/streams/writable.js:303:10)
    at IncomingMessage.ondata (internal/streams/readable.js:719:22)
    at IncomingMessage.emit (events.js:315:20)
    at IncomingMessage.Readable.read (internal/streams/readable.js:519:10)
    at flow (internal/streams/readable.js:992:34)
    at resume_ (internal/streams/readable.js:973:3)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

I encountered this error when I tried to upload multiple files (about more than 1000). I debugged and found the error occur at multipart.js file line 91 (shown below)

mt1

Another question here is about "MAX_HEADER_SIZE". If the sum of all subpart Content-Disposition header size exceed "MAX_HEADER_SIZE", this error will occur ? Or if any one subpart Content-Disposition header size exceed "MAX_HEADER_SIZE", it will occur ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions