Closed adaboese closed 9 months ago
Seems like a bug in Remix https://github.com/remix-run/remix/discussions/8315
This is not a bug in Remix, you can only read the request body once, since you’re calling request.formData()
and Remix Auth also do it it fails.
If you want to read the body before calling Remix Auth you need to first clone the request with request.clone().formData()
.
It was working just fine before migrating remix version:
- "@remix-run/dev": "^2.3.1",
- "@remix-run/node": "^2.3.1",
- "@remix-run/react": "^2.3.1",
- "@remix-run/serve": "^2.3.1",
+ "@remix-run/dev": "^2.4.0",
+ "@remix-run/node": "^2.4.0",
+ "@remix-run/react": "^2.4.0",
+ "@remix-run/serve": "^2.4.0",
But good to know. Thank you!
Describe the bug
Started getting this error when trying to authenticate. I am unsure what's causing it.
Code around this is super basic and was working before:
Your Example Website or App
N/A
Steps to Reproduce the Bug or Issue
Don't know
Expected behavior
Not get the error
Screenshots or Videos
No response
Platform
Additional context
No response