-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Form action stalls while awaiting formData for certain requests #11126
Comments
System info from my mac, which can't reproduce the hang:
|
Results from updating the node version on my linux machine:
Result: still hangs
Result: Success! What's the current min-supported node version for svelte-kit? |
had the same problem. updating node from 20.9 to 20.10 fixed it for me. |
Had the same problem, upgrading to node 20.11 solved. THANK YOU!! |
Same issue here on linux. In a standard form with only text inputs (some hidden) , |
Seems to be related to the number of hidden inputs in my case. Also, the formdata request doesn't hang if I don't use [Edit] |
WOW this is so interesting. I remember first running into this problem on October 21, 2023; however, the latest NodeJS version was only 18.18.2 back then, which makes me wonder if 18.18.1 and 18.18.2 are borked as well. I know it was fine when I tried around September, so it makes sense it's a NodeJS version thing (I deployed on Vercel and had set it to use the latest 18.x version). Luckily changing it to 20.x fixed the issue, but I'm still really curious as to what could cause this... FWIW, I'm able to consistently trigger the hang when I send enough data for a Content-Length of 16384 or greater. 16383 and less work. 16384 is exactly 16 KiB. Wonder what could be the significance of this. @rumack I think it's just related to the size of the form data. I was able to reproduce in a form with zero hidden inputs, just sending Content-Length >= 16384. |
I can confirm this, which only occurs in Node versions 18.18.2 through 20.9.0 when using the |
I was also experiencing this exact behavior on node v18.9.0 where submitting a form with a body of greater than ~16kb would just hang. Upgrading node to v20.13.1 solved the problem. |
Had this issue running SvelteKit on App Engine (where I should note that we weren't using |
Closing this as I was unable to reproduce the issue given the minimal reproduction on Windows WSL2 Node.js 20.18.0 |
Describe the bug
I managed to capture a formData post request that causes an action handler's
event.request.formData()
promise to never resolve. This appears to be platform dependent, as it does not reproduce when running on my MacBook.Reproduction
npm install
npm run dev
In another terminal:
repro.sh
(it's a curl request that posts tohttp://localhost:5173/post/form
with the headers and body that seem to reproduce this problem)./repro.sh
Bug: The request hangs, never generating a reply (neither success nor error)
Comparison:
./repro.sh
Working as intended: the
event.request.text()
promise resolves with the body of the request.Logs
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: