javascript: Remix v2_errorBoundary makes sign in 401 error
- Review the documentation: https://docs.clerk.com/
- Search for existing issues: https://github.com/clerkinc/javascript/issues
- Go through package changelog files.
- Provide the Frontend API key from your application dashboard.
Package + Version
-
@clerk/clerk-js -
@clerk/clerk-react -
@clerk/nextjs -
@clerk/remix -
@clerk/types -
@clerk/themes -
@clerk/localizations -
@clerk/clerk-expo -
@clerk/backend -
@clerk/clerk-sdk-node -
@clerk/shared -
@clerk/fastify -
gatsby-plugin-clerk -
build/tooling/chore - other:
Dependencies + versions
{
"dependencies": {
"@clerk/remix": "^2.2.17",
"@remix-run/node": "^1.14.3",
"@remix-run/react": "^1.14.3",
"@remix-run/vercel": "^1.14.3",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"@remix-run/dev": "^1.14.3",
"@remix-run/eslint-config": "^1.14.3",
"@remix-run/serve": "^1.14.3",
"@types/react": "^17.0.24",
"@types/react-dom": "^17.0.9",
"cross-env": "^7.0.3",
"eslint": "^8.9.0",
"prettier": "^2.5.1",
"typescript": "^4.6.2"
}
}
Browser/OS
Chrome 112
Description
https://github.com/arjunyel/remix-auth-starter/tree/bug/v2_errorBoundary
In remix.config.js, if v2_errorBoundary: true login results in a 401 error. v2_errorBoundary: false works fine.
v2_errorBoundary - Combine ErrorBoundary/CatchBoundary into a single ErrorBoundary https://remix.run/blog/future-flags
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 2
- Comments: 26 (17 by maintainers)
Thanks a lot! This refactored code seems to work in case anyone needs it:
@dimkl latest version of Remix (1.15) will likely be the last before v2 and it now warns when not using the
v2_errorBoundaryflag. This should probably be addressed soon or not clerk customers will be able to upgrade to Remix v2.I agree with @vedovelli it’s getting increasingly urgent…
Bump
hello 👋 We will try to prioritise the changes to support v2 in the next couple of weeks. In the meantime
@clerk/remixis an open source package, if someone wants to contribute, feel free to open a PR and we will try to review it as soon as possible.Hello 👋
As Remix V2 is close to be released, does Clerk have an estimate on when an update can be expected? I am specifically asking about
v2_errorBoundary.Thank you!
I’d prefer to keep the configuration to disable it while we work on the improvements for V2.
We can discuss internally, if we want to put this in depending on the amount of time it will take us to add it to our SDK support.
In the meantime can someone please add a note to the docs so others like me don’t spend 2 days trying to figure out why Clerk is not working with their shiny new Remix app.
I can confirm that the current Clerk tutorial for Remix isn’t working with current version of Remix, 1.15, and that adding the code above to
root.jsxmakes the app run again.FWIW, this should work as a temporary work around:
Headers are
Someone in discord is also getting the uat missing error https://discord.com/channels/856971667393609759/1086202715077627905
Regular email password login works, but Google sign in throws the 401