【发布时间】:2019-06-12 12:57:15
【问题描述】:
我正在 Google App Engine 中设置 NodeJS 后端,当我尝试连接到 SQL 云(使用 sequelize + postgres)时,我收到了这个错误:
Unhandled rejection SequelizeConnectionError: connect ENOENT /cloudsql/tar:us-central1:dbpointofsales/.s.PGSQL.5432
at connection.connect.err (/home/mf/backend/node_modules/sequelize/lib/dialects/postgres/connection-manager.js:182:24)
at Connection.connectingErrorHandler (/home/mf/backend/node_modules/pg/lib/client.js:163:14)
at Connection.emit (events.js:182:13)
at Socket.reportStreamError (/home/mf/backend/node_modules/pg/lib/connection.js:71:10)
at Socket.emit (events.js:182:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
【问题讨论】:
标签: google-cloud-platform google-cloud-sql