You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The form fails and responds with a HTTP500 and the following error:
_Request.formData: Could not parse content as FormData.
The full traceback
at webidl.errors.exception (node:internal/deps/undici/undici:1432:14) at _Request.formData (node:internal/deps/undici/undici:4505:33) at async Object.D$2 [as handler] (./server/chunks/nitro/aws-lambda.mjs:7596:14) at async Object.handler (./server/chunks/nitro/aws-lambda.mjs:3471:19) at async toNodeHandle (./server/chunks/nitro/aws-lambda.mjs:3660:7) at async Runtime.handler (./server/chunks/nitro/aws-lambda.mjs:8890:13) | 2024-01-28T16:03:43.140Z ec66aefc-a464-426b-a65b-a99ae9dbcfdd ERROR [nitro] [request error] [unhandled] _Request.formData: Could not parse content as FormData. at webidl.errors.exception (node:internal/deps/undici/undici:1432:14) at _Request.formData (node:internal/deps/undici/undici:4505:33) at async Object.D$2 [as handler] (./server/chunks/nitro/aws-lambda.mjs:7596:14) at async Object.handler (./server/chunks/nitro/aws-lambda.mjs:3471:19) at async toNodeHandle (./server/chunks/nitro/aws-lambda.mjs:3660:7) at async Runtime.handler (./server/chunks/nitro/aws-lambda.mjs:8890:13)
The form data fields appear to passing to the body correctly. Perhaps there is something in the Lambda node runtime that im missing?
Forms work fine in the local development server and when building to node.
Expected behavior 🤔
Forms should submit normally.
Steps to reproduce 🕹
An minimal reproducible example repo is available here:
This issue seems to be have been resolved somewhere between vinxi 0.1.10 and 0.3.10 and/or solid start 0.4.11 and 0.7.5. Running the demo repo listed above on lambda with the updated version does seem to submit as expected.
Duplicates
Latest version
Current behavior 😯
When deploying to AWS Lambda and submitting a form in an application the submission fails and returns at HTTP 500.
This occurs even with a simple form and corresponding action
The form fails and responds with a HTTP500 and the following error:
_Request.formData: Could not parse content as FormData.
The full traceback
The form data fields appear to passing to the body correctly. Perhaps there is something in the Lambda node runtime that im missing?
Forms work fine in the local development server and when building to node.
Expected behavior 🤔
Forms should submit normally.
Steps to reproduce 🕹
An minimal reproducible example repo is available here:
https://github.com/russbiggs/solid-start-form-lambda
This include AWS CDK for deploying to AWS lambda and generating an public URL.
Context 🔦
Attempting to deploy a solid-start application with forms on AWS lambda.
Your environment 🌎
The text was updated successfully, but these errors were encountered: