微信云托管调用接口全部报{ errcode: -1, errmsg: 'Timeout while
14:1104/03 14:11:14
cloud-test-080
(node:28) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6938)
04/03 14:11:14
cloud-test-080
at processTicksAndRejections (internal/process/task_queues.js:95:5)
04/03 14:11:14
cloud-test-080
at runMicrotasks ()
04/03 14:11:14
cloud-test-080
at getUrl (/usr/src/app/common/wx_common.js:549:25)
04/03 14:11:14
cloud-test-080
at /usr/src/app/routes/wx-mp/wxMpController.js:45:13
04/03 14:11:14
cloud-test-080
at ServerResponse.json (/usr/src/app/node_modules/express/lib/response.js:267:15)
04/03 14:11:14
cloud-test-080
at ServerResponse.send (/usr/src/app/node_modules/express/lib/response.js:170:12)
04/03 14:11:14
cloud-test-080
at ServerResponse.header (/usr/src/app/node_modules/express/lib/response.js:767:10)
04/03 14:11:14
cloud-test-080
at ServerResponse.setHeader (_http_outgoing.js:561:11)
04/03 14:11:14
cloud-test-080
at new NodeError (internal/errors.js:322:7)
04/03 14:11:14
cloud-test-080
(node:28) UnhandledPromiseRejectionWarning: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
04/03 14:11:14
cloud-test-080
{ errcode: -1, errmsg: 'Timeout while waiting for response' } result qrcode
04/03 14:11:14
cloud-test-080
网络请求错误 Timeout while waiting for response
04/03 14:11:14
cloud-test-080
返回结果: Timeout while waiting for response
04/03 14:11:14
cloud-test-080
看起来是你的服务调用第三方接口的时候超时了,并且没有处理异步的错误,所以报UnhandledPromiseRejectionWarning