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

readFormData doesn't work on cloudflare workers (vercel-edge) #538

Closed
cosbgn opened this issue Sep 12, 2023 · 1 comment
Closed

readFormData doesn't work on cloudflare workers (vercel-edge) #538

cosbgn opened this issue Sep 12, 2023 · 1 comment

Comments

@cosbgn
Copy link

cosbgn commented Sep 12, 2023

Environment

nuxt 3.7.1

Reproduction

export default defineEventHandler(async (event) => {
	console.log("start 1")
	const form = await readFormData(event)
	console.log("start 2")
})

It logs start 1 and then it hung until it eventually dies with a 502.

Describe the bug

When I await readFormData(event) it never resolves and eventually it dies with a 502.

Additional context

Tested on vercel-edge

Logs

No response

@pi0
Copy link
Member

pi0 commented Sep 12, 2023

Thanks for making issue. I have managed to make a minimal reproduction with h3 and vercel-edge isolated from nitro (don't ask me how! emulating builder output is a mess..) but anyway it works as expected: https://h3-on-vercel-edge.vercel.app/

This seems a bug originating from how nitro handles request body for vercel edge. So let's keep tracking it there (nitrojs/nitro#1718 > nitrojs/nitro#1721)

@pi0 pi0 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 12, 2023
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

2 participants