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

Error when trying to pipe large binary file #929

Open
Sov3rain opened this issue Mar 7, 2024 · 1 comment
Open

Error when trying to pipe large binary file #929

Sov3rain opened this issue Mar 7, 2024 · 1 comment

Comments

@Sov3rain
Copy link

Sov3rain commented Mar 7, 2024

Hi there,

I'm getting an error when trying to pipe a binary file (a 3D model in .glb). Here is the server error:

[ERROR] default - on uncaughtException Error [ERR_STREAM_WRITE_AFTER_END]: write after end
at new NodeError (node:internal/errors:405:5)
at ServerResponse.end (node:_http_outgoing:1017:15)
at PassThrough.<anonymous> (/app/dist/src/piping.js:315:40)
at PassThrough.emit (node:events:514:28)
at errorEventQueue (/app/node_modules/multiparty/index.js:645:18)
at handleError (/app/node_modules/multiparty/index.js:211:9)
at IncomingMessage.onReqAborted (/app/node_modules/multiparty/index.js:197:5)
at IncomingMessage.emit (node:events:514:28)
at IncomingMessage._destroy (node:_http_incoming:224:10)
at _destroy (node:internal/streams/destroy:109:10) {
code: 'ERR_STREAM_WRITE_AFTER_END'
}

The file is 47 MB.

What I'm doing to get there:

  • Reading a file from disk
  • Creating a blob from this file
  • Putting the blob in a form data
  • Sending the form data with a POST request

Let me know if you need more details.

Environment:
Deployed from the Dockerfile on Railway.app

@Sov3rain
Copy link
Author

Sov3rain commented Mar 7, 2024

From what I understand from this, it seems like the response is closed too early. Is that correct?

EDIT: related to #261 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant