工程狮
工程狮
  • 发布:2024-04-02 19:35
  • 更新:2024-04-22 18:37
  • 阅读:182

最近发现一个云函数经常出现 300s 的超时问题

分类:uniCloud

一个云函数经常出现一个超时错误,麻烦看看是什么问题,
找了半天没有找到问题,有时又不会,大概 80% 会出现这个问题
打印如下:
[order-query/ac1cc3051712056901896164347/335632ms/ERROR] (node:4) UnhandledPromiseRejectionWarning: Error: Response timeout for 300000ms, POST https://api-inner.next.bspapp.com/server -1 (connected: true, keepalive socket: false, socketHandledRequests: 1, socketHandledResponses: 0)
headers: {}
at e.$scope.function.invoke.then.catch.e (/tmp/function/@dcloudio/serverless/lib/aliyun/uni-cloud.js:1:95822)
at <anonymous>
[order-query/ac1cc3051712056901896164347/335632ms/ERROR] (node:4) 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(). (rejection id: 1)
[order-query/ac1cc3051712056901896164347/335632ms/ERROR] (node:4) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

2024-04-02 19:35 负责人:无 分享
已邀请:
DCloud_uniCloud_VK

DCloud_uniCloud_VK

私发下空间id

要回复问题请先登录注册