Middleware error on cluster deployment with Docker.
Hey guys I have a problem. My Nextjs app with better auth will not work correctly on my server enviroment. On vercel everything works perfect but on my server cluster it gets an 500 ssl error.
This is my middleware code:
and the following error appears:
at async (.next/server/src/middleware.js:13:32351)
at async e4 (.next/server/src/middleware.js:13:29211)
[cause]: [Error:
30A2D9D646700000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:
../deps/openssl/openssl/ssl/record/ssl3_record.c:354
] {
library: 'SSL routines',
reason: 'wrong version number',
code: 'ERR_SSL_WRONG_VERSION_NUMBER'
}
Does anyone have any idea why Better-Auth is giving this error?
2 Replies