error: MongoNetworkError: 581F0000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:c:\ws\deps\openssl\openssl\ssl\record\rec_layer_s3.c:1586:SSL alert number 80
at connectionFailureError (C:\src\blog-diary\api\node_modules\mongodb\lib\cmap\connect.js:367:20)
at TLSSocket.<anonymous> (C:\src\blog-diary\api\node_modules\mongodb\lib\cmap\connect.js:290:22)
at Object.onceWrapper (node:events:629:26)
at TLSSocket.emit (node:events:514:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
cause: [Error: 581F0000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:c:\ws\deps\openssl\openssl\ssl\record\rec_layer_s3.c:1586:SSL alert number 80
] {
library: 'SSL routines',
reason: 'tlsv1 alert internal error',
code: 'ERR_SSL_TLSV1_ALERT_INTERNAL_ERROR'
},
[Symbol(errorLabels)]: Set(1) { 'ResetPool' }
},
topologyVersion: null,
setName: null,
setVersion: null,
electionId: null,
logicalSessionTimeoutMinutes: null,
primary: null,
me: null,
'$clusterTime': null
}
},
stale: false,
compatible: true,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
setName: 'atlas-9t99d2-shard-0',
maxElectionId: null,
maxSetVersion: null,
commonWireVersion: 0,
logicalSessionTimeoutMinutes: null
},
code: undefined
}
Who knows the problem and how to fix it?
谁知道这个问题以及如何解决它?
更多回答
What version of Node.js are you running?
您运行的是什么版本的Node.js?
I am using node.js version 18.17.1 @Phil
我使用的是node.js版本18.17.1@Phil
优秀答案推荐
The error message you're seeing indicates a problem with SSL/TLS encryption while trying to connect to a MongoDB server.
您看到的错误消息表明在尝试连接到MongoDB服务器时SSL/TLS加密有问题。
Check Your MongoDB Connection String
检查您的MongoDB连接字符串
mongodb+srv://username:[email protected]/databaseName?retryWrites=true&w=majority&ssl=true&sslCAPath=path-to-ca-file.pem
更多回答
Check My MongoDB Connection String Yes I try but noting
检查我的MongoDB连接字符串是的,我尝试了,但注意到
我是一名优秀的程序员,十分优秀!