Closed akamfoad closed 1 year ago
Hm, this seems like maybe a bug in Chrome? When creating a new Request
with an empty FormData
instance as the body
, you can await request.text()
but it throws an error on await request.formData()
:
It seems fine in Firefox:
I have the exact same issue that @brophdawg11 reported on Chrome. I filled a bug report on the Chromium project to see if we can get help from them: https://bugs.chromium.org/p/chromium/issues/detail?id=1450115
🙌 Thank you for filing that @giovannibenussi!
I am going to close this out since it seems like the Chrome team is open to fixing on their end.
What version of Remix are you using?
1.16.1
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
Or you can see this reproduction app.
Notice when the checkbox is checked submitting works fine, but when its unchecked, it fails to submit and crashes.
This only happens on Chrome, it works fine on Firefox.
Also using
form.submit
still works,form.requestSubmit
or normal submit causes the crash to happen.Expected Behavior
To submit the form and send the request to the action regardless of what browser I use.
Actual Behavior
The
Form
crashes with this error stack