我们面临的主要后端服务器问题有时会因以下问题而崩溃。
throw er; // Unhandled 'error' event
^
"textPayload":"","insertId":"5f64b020000426746c856844","resource":{"type":"cloud_run_revision","labels":{"service_name":"sf-api-alpha-handler","project_id":"feisty-current-253218","revision_name":"sf-api-alpha-handler-00066-mov","location":"us-central1","configuration_name":"sf-api-alpha-handler"}}…
Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:205:27)
Emitted 'error' event on Client instance at:
at Connection.connectedErrorHandler (/srv/app/node_modules/pg/lib/client.js:221:10)
at Connection.emit (events.js:315:20)
at Socket.reportStreamError (/srv/app/node_modules/pg/lib/connection.js:57:10)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: 'ECONNRESET',
code: 'ECONNRESET',
syscall: 'read'
}
似乎是Postgres连接问题,但我不确定。我们在GCP Cloud Run上部署了后端服务器,并使用Postgres作为数据库。
正在寻找帮助。
非常感谢