Closed Metevier closed 3 months ago
I'm having the same problem: https://github.com/clerk/javascript/pull/3495#issuecomment-2237756527
Hello! Thank you for reporting this issue. We will investigate as soon as possible.
Hey @Metevier and @ariofrio
Thanks for reporting the issue! I have made a fix for this, you can try it out by installing the snapshot below and let me know if that fixes your issue!
npm i @clerk/remix@4.2.8-snapshot.vb3a15ea --save-exact
Hey @Metevier and @ariofrio
Thanks for reporting the issue! I have made a fix for this, you can try it out by installing the snapshot below and let me know if that fixes your issue!
npm i @clerk/remix@4.2.8-snapshot.vb3a15ea --save-exact
Seems to have resolved the issue!
Preliminary Checks
[X] I have reviewed the documentation: https://clerk.com/docs
[X] I have searched for existing issues: https://github.com/clerk/javascript/issues
[X] I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
[X] 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 callsrequest.clone()
, which will fail if the body has already been read: https://github.com/clerk/javascript/blob/5056fb59438138cbaab748e2c13b6c471981bf55/packages/remix/src/ssr/utils.ts#L127-L134Here 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