-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Database connection failed after update mongoose from 8.6.4 to 8.7.0 or higher #15015
Comments
Can you please print out what the ServerDescription object is in |
Of course here it is.
|
I am facing the exact same issue with mongoose 8.8.1 |
@lemagicien00 thanks for posting the error. Can you also show what |
The output given by error.reason.servers.get(serverUrlHere).error is MongoNetworkError: C0A77A8C407F0000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1605:SSL alert number 80 I would like to make a clarification. |
After doing some test I can confirm that issue, It works on Mongoose 8.6.4 but fails on 8.7.0. So seems an issue introduced on this version: https://github.com/Automattic/mongoose/releases/tag/8.7.0 |
Prerequisites
Mongoose version
8.8.0
Node.js version
18.15.0
MongoDB version
7.0.15
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
Debian 4.19.0-24-cloud-amd64
Issue
When I update mongoose to version 8.7.0 or higher, I have a database connection error on MongoDb Atlas.
If I go back to mongoose version 8.6.4 everything works fine
The problem is the same from Windows (dev) or Debian Linux (production) on AWS EC2 and on OVH VPS.
The IPs are in the whitelist in mongodb atlas network access.
I did some tests by changing some options (like serverSelectionTimeoutMS) but it didn't change the error.
Log:
The code for connection:
Thank you for your help
The text was updated successfully, but these errors were encountered: