-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
FormData missing final boundary #2644
Comments
With Astrobuild, i have this error : TypeError: FormData parse error missing final boundary Same thing is i submit with Json |
Same error with SvelteKit and Superform |
Can confirm the error on Sveltekit |
Getting the same error on SvelteKit with |
Same error here |
Can confirm the error on Qwik with bun adapter.
|
I am not sure if it is bun or H3, but I am receiving this error as well when using solidstart, which proxies h3s functions.
|
Here is the repo you can clone to reproduce the error (SolidStart) |
This makes Bun completely unusable for my purposes. After 1 year of the OP, and a 1.0 release, can we maybe bump up this priority? I get errors even when using Json like lilliandev said. I'm trying to use a Sveltekit adapter (https:/gornostay25/svelte-adapter-bun) and essentially any endpoint does not receive a body at all, whether formdata, json, or text. Would raise the issue with the adapter repo if I didn't see so many other people encounter the same thing with other tools like SolidStart. |
Any update? It doesn't append the Boundary neither with |
I'm able to reproduce this
This is reproducible, though getting a more minimal reproduction proved difficult. It looks like there is some issue with how solidstart's dependencies are cloning the request and its body that causes the body to be empty by the time |
To me happens even without solidstart, just sending a simple request with a FormData body doesn't attach the Boundary so the servers doesn't detect the |
bump |
same error :/ |
I had this issue on my class
in which
I resolved it using a copy function inside the parent class
hopefully this helps solve this bug, somehow, clearly it is related to cloning the request. |
also present in astro |
Bun: Happens with Astro actions. |
What version of Bun is running?
0.5.9
What platform is your computer?
WSL - x64
What steps can reproduce the bug?
Here is the code causing the bug. Try to hit
localhost:3000
many times quickly and the server will throw the following error message:error: FormData missing final boundary
When removing the setTimeouts everything works correctly. That is what causing the problem.
What is the expected behavior?
Not to throw an error
What do you see instead?
The error described above.
Additional information
No response
The text was updated successfully, but these errors were encountered: