Replies: 1 comment
-
how to solve this error? this happens to me when using nextjs behind a reverse proxy in a selfhosted docker deployed nextjs app |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Environment
When attempting to retrieve a user by email using the NextAuth.js library, an SSL handshake error occurs, resulting in the following error message:
"EPROTO 8034597504:error:1408F10B:SSL routines:ssl3_get_record:wrong version number"
. This error indicates a mismatch in SSL/TLS protocol versions during the SSL handshake process.This happens when posting to
/api/auth/signin/email
. It fails both as curl and in the browserSystem:
OS: macOS 13.1
CPU: (8) arm64 Apple M1 Pro
Memory: 57.78 MB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node
npm: 8.11.0 - ~/.nvm/versions/node/v16.15.1/bin/npm
Browsers:
Chrome: 113.0.5672.126
Firefox Developer Edition: 114.0
Safari: 16.2
I am unsure how to debug this, since it appears to be inside the internals of NextAuth.
I have previously had issues with https on the login button here which I would imagine is relevant. However now it is showing
http://localhost
which makes me wonder if it's picked up the wrong cookie or similar.I can post to /api/auth/signout, and receive a 302 (since I assume no user is logged in yet).
Any suggestions on debugging greatly appreciated.
Reproduction URL
localhost
Describe the issue
Bug Description:
When attempting to retrieve a user by email using the NextAuth.js library, an SSL handshake error occurs, resulting in the following error message: "EPROTO 8034597504:error:1408F10B:SSL routines:ssl3_get_record:wrong version number". This error indicates a mismatch in SSL/TLS protocol versions during the SSL handshake process.
How to reproduce
Expected behavior
Email sent via provider for login
Beta Was this translation helpful? Give feedback.
All reactions