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

Any request body becomes [object Object] in next.js #26716

Closed
szcharlesji opened this issue Nov 4, 2024 · 3 comments
Closed

Any request body becomes [object Object] in next.js #26716

szcharlesji opened this issue Nov 4, 2024 · 3 comments
Labels
bug Something isn't working correctly nextjs Issue relating to Next.js node compat

Comments

@szcharlesji
Copy link

Version: Deno 2.0.4

When I run deno run dev for next.js, any request body becomes [object Object]

@littledivy littledivy added bug Something isn't working correctly node compat nextjs Issue relating to Next.js labels Nov 4, 2024
@littledivy
Copy link
Member

It seems Next.js creates a a new undici Request using Node streams (clearly against the spec AFAICT). To fix this, we will have to add support for Node stream for request bodies.

@Shoukozumi
Copy link

Similar issue: #26667

@littledivy
Copy link
Member

Closing as duplicate of #26667. Let's track it there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly nextjs Issue relating to Next.js node compat
Projects
None yet
Development

No branches or pull requests

3 participants