-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
Registration throws multiple different errors in irregular intervals #697
Comments
Hi @devbydaniel, just to clarify:
Do you observe any other errors with your lambda function? What's the code being ran in You mentioned that after clicking the confirmation link, you observe an
I am confused - does this mean that the user is logged in successfully despite seeing the error? |
Hi @kangmingtay, thanks for your reply! I've moved away from the
No, I've never before and never since had these kind of errors showing up in my logs in this app.
Basically nothing, at least no business logic. After posting the registration details to the
Almost. There was an error thrown somewhere deep down that triggered Next.js to show the error page, but if the user then manually navigated to the login page and used their credentials, they could log in without problems. As far as I remember, the user wasn't logged in right away though. In other words: The |
Bug report
Describe the bug
I am using Next.js 13 with app router. on Vercel Since a couple of days, without any code change to the registration flow, I am seeing multiple errors occurring during the registration process with email and password.
1. From /registration to /registration/confirm, one of these two errors gets thrown, after clicking submit
If the error occurs, the confirmation email is still sent out and the user is created correctly, but instead of the confirmation screen, the user sees the error page.
2. After clicking the confirm link:
Again, the user sees an error page, but under the hood the user is confirmed and able to login in when navigating to the login page.
The worst part is I cannot reliably reproduce these errors, they currently happen around 1 in 3 registrations and I could not find a pattern if some of these are related.
To Reproduce
As mentioned above I cannot reliably reproduce the error, but this is the code involved in the flow (basically copy pasted from the official docs)
/auth/sign-up/route.ts
/auth/callback/route.ts
Expected behavior
No errors during registration
System information
Nextjs 13 with app router on Vercel.
Additional context
Sorry for the vague description, but I am myself completely clueless why this happens all of a sudden and how to approach this.
I'm grateful for every pointer as this severly affects the application. Thanks in advance for help
The text was updated successfully, but these errors were encountered: