Skip to content

[uncaughtException] TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object #1003

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

Closed
medz opened this issue Mar 31, 2025 · 3 comments
Labels
bug Something isn't working needs reproduction nitro

Comments

@medz
Copy link

medz commented Mar 31, 2025

Environment

Reproduction

[uncaughtException] TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object
at write_ (node:_http_outgoing:949:11)
at ServerResponse.end (node:_http_outgoing:1106:5)
at Immediate. (file:///Users/seven/workspace/panews-api-server/node_modules/h3/dist/index.mjs:735:24)
at process.processImmediate (node:internal/timers:511:21) {
code: 'ERR_INVALID_ARG_TYPE'
}

Describe the bug

Image

Additional context

No response

Logs

@medz medz added the bug Something isn't working label Mar 31, 2025
@medz
Copy link
Author

medz commented Mar 31, 2025

handler:

Image

@kricsleo
Copy link
Member

Could you share a minimal reproduction so that we can debug? 🙏

@pi0
Copy link
Member

pi0 commented Apr 15, 2025

please consider reopening an issue in nitro repo with reproduction 🙏🏼

It looks either a bug with Bun runtime (have you tried same code on Node.js?) or something beyond details provided in current issue.

@pi0 pi0 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs reproduction nitro
Projects
None yet
Development

No branches or pull requests

3 participants