Closed cwoolum closed 6 months ago
Roling back to @builder.io/qwik@1.2.6
seems to fix the issue.
npmPackages:
@builder.io/partytown: ^0.8.0 => 0.8.1
@builder.io/qwik: 1.2.6 => 1.2.6
@builder.io/qwik-auth: 0.1.1 => 0.1.1
@builder.io/qwik-city: 1.2.6 => 1.2.6
undici: ^5.23.0 => 5.27.2
vite: ^4.4.7 => 4.5.0
Thank you for creating this issue and for the additional information. This error should only occur when await event.request.formData()
is called twice. Since Modular Forms only calls it once, I suspect that the bug has an external origin.
Just getting back to this. I think this might be related to using a multi-part form. It might be reading it multiple times for the images. Trying to narrow this down further.
Thank you for the update!
I have the same issue, this error is thrown before myHandler is executed formAction$(myHandler)
. When you add onPost request handler to the router file, it is able to get the file with parseBody
.
I will try to investigate more.
Are you getting the error because formData()
is called multiple times?
I get this error also, and from what I can tell, there is a await request.formData()
happening on this line
https://github.com/BuilderIO/qwik/blob/9959b1875ac2b5f70de28e3f97baf86bda0a56c6/packages/qwik-city/middleware/request-handler/request-event.ts#L328C35-L328C44
before the @modular-forms' own formActionQrl
calls that for the second time.
Maybe Qwik has changed their implementation. Feel free to provide me with a minimal reproduction. request.formData()
wasn't called in Qwik when I implemented the library.
Hello, I was able to fix the issue in #194. Could you check if that works for you? :)
I reviewed the PR
Hello,
I recently just started running into a strange issue with my form. When I try to save, I now receive the following error
The line with the error is
I use Valibot for validation but this error also seems to occur if I remove validation. My
formAction$
is never hit either so this seems to be something happening when the form is submitted and but before my own logic is run.Here is my form configuration
System Info: