mscdex / busboy

A streaming parser for HTML form data for node.js
MIT License
2.84k stars 213 forks source link

Error: Malformed urlencoded form #358

Closed terrablue closed 2 months ago

terrablue commented 4 months ago

Stacktrace

Error: Malformed urlencoded form
    at URLEncoded._write (/srv/http/gp/node_modules/busboy/lib/types/urlencoded.js:201:27)
    at writeOrBuffer (node:internal/streams/writable:564:12)
    at _write (node:internal/streams/writable:493:10)
    at Writable.write (node:internal/streams/writable:502:10)
    at IncomingMessage.ondata (node:internal/streams/readable:1007:22)
    at IncomingMessage.emit (node:events:519:28)
    at Readable.read (node:internal/streams/readable:780:10)
    at flow (node:internal/streams/readable:1281:53)
    at resume_ (node:internal/streams/readable:1260:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on URLEncoded instance at:
    at URLEncoded.onerror (node:internal/streams/readable:1026:14)
    at URLEncoded.emit (node:events:519:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Node.js v21.7.3

Is this something that should be fixed in busboy, or should the library using it try/catch this error?

mscdex commented 4 months ago

Did you add an 'error' event handler?

terrablue commented 2 months ago

Thanks!