-
Notifications
You must be signed in to change notification settings - Fork 343
Duplex Changes in Remix prevent calling getAuth
after body already is read
#3759
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
Comments
I'm having the same problem: #3495 (comment) |
Hello! Thank you for reporting this issue. We will investigate as soon as possible. |
Thanks for reporting the issue!
|
Seems to have resolved the issue! |
Preliminary Checks
I have reviewed the documentation: https://clerk.com/docs
I have searched for existing issues: https://github.com/clerk/javascript/issues
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction
None Provided
Publishable key
pk_live_Y2xlcmsudW5pcXVlbGlicmFyeS5jb20k
Description
Recent changes to the remix package to support duplexed connections are causing breaking changes when you call
getAuth
after utilizing the request body.This seems to be due to an update that calls
request.clone()
, which will fail if the body has already been read:javascript/packages/remix/src/ssr/utils.ts
Lines 127 to 134 in 5056fb5
Here is a simple example action:
Steps to reproduce:
getAuth
Expected behavior:
getAuth
can be called after reading from request body.Actual behavior:
Exception is thrown:
Environment
The text was updated successfully, but these errors were encountered: