NextAuth + Prisma Local ERR_SSL_PROTOCOL_ERROR #19494
Replies: 4 comments 11 replies
-
Hello @tangledbootlace 👋 Thanks for raising this, it's on our team's radar to update the Guide. Can you have a look at this GitHub Discussion? |
Beta Was this translation helpful? Give feedback.
-
I am having the same issue but for credentials provider. When I click the "Sign in with Credentials" button from the default NextAuth page I am redirected to "https://localhost:3000/api/auth/callback/credentials" but it shows this error "ERR_SSL_PROTOCOL_ERROR This Site Can’t Provide a Secure Connection". The same happens when I click "Sign Out" in the signout page. I tried disabling certificate verification with the env variable "NODE_TLS_REJECT_UNAUTHORIZED=0" I have seen in this answer https://stackoverflow.com/a/58003959/11909334 |
Beta Was this translation helpful? Give feedback.
-
I was experiencing exactly the same issue. Even having the variable env Caused by https://github.com/nextauthjs/next-auth/blob/main/packages/next-auth/src/utils/detect-origin.ts
This post from StackOverflow helped me: https://stackoverflow.com/a/76104275 |
Beta Was this translation helpful? Give feedback.
-
VERCEL="" fixed my problem. Thx. |
Beta Was this translation helpful? Give feedback.
-
Hi all!
I'm evaluating Prisma for use with a NextJS application and am following this guide https://vercel.com/guides/nextjs-prisma-postgres. However, I am running into issues on Step 7.
After setting up my /api/auth/ route, I successfully see the page with the button to "Sign in with GitHub," however, upon clicking the button, I am redirected to https://localhost:3000/api/auth/signin/github and get an ERR_SSL_PROTOCOL_ERROR due to the fact that I do not have SSL configured.
I've followed this guide incredibly closely, and am not sure if I am missing something. Has anyone else run into this issue while following this guide?
Any help would be appreciated! I'm happy to provide any additional information needed.
Beta Was this translation helpful? Give feedback.
All reactions