sk_in_china
sk_in_china
  • 发布:2023-02-13 16:34
  • 更新:2023-02-14 11:13
  • 阅读:321

调用云函数报错Process exited unexpectedly before completing request

分类:uniCloud

有遇到过这种问题的吗
Process exited unexpectedly before completing request (duration: 1704ms, maxMemoryUsage: 15.42MB)'

2023-02-13 16:34 负责人:无 分享
已邀请:
DCloud_uniCloud_CRL

DCloud_uniCloud_CRL

有详细错误吗?本地调试还是云端?

  • sk_in_china (作者)

    云端

    2023-02-15 10:19

  • sk_in_china (作者)

    偶发,并不是每次都会报错,但是偶发性比较大

    2023-02-15 10:20

  • sk_in_china (作者)

    [chatgpt/ac1cd3741676363167808113893/2117ms/DEBUG] { data:

    { errorMessage: 'Process exited unexpectedly before completing request (duration: 1876ms, maxMemoryUsage: 15.95MB)' },

    status: 502,

    headers:

    { 'access-control-expose-headers': 'Date,x-fc-request-id,x-fc-error-type,x-fc-code-checksum,x-fc-invocation-duration,x-fc-max-memory-usage,x-fc-log-result,x-fc-invocation-code-version',

    'content-type': 'application/json',

    'x-fc-code-checksum': '13110806949608216834',

    'x-fc-error-type': 'UnhandledInvocationError',

    'x-fc-instance-id': 'c-63eb459b-d9b3369a8df549f28a2f',

    'x-fc-invocation-duration': '3190',

    'x-fc-invocation-service-version': 'LATEST',

    'x-fc-max-memory-usage': '15.95',

    'x-fc-request-id': '43547093-4ad3-491e-bdac-2fcd9830e589',

    date: 'Tue, 14 Feb 2023 08:26:10 GMT',

    'content-length': '116' },

    res:

    { status: 502,

    statusCode: 502,

    statusMessage: 'Bad Gateway',

    headers:

    { 'access-control-expose-headers': 'Date,x-fc-request-id,x-fc-error-type,x-fc-code-checksum,x-fc-invocation-duration,x-fc-max-memory-usage,x-fc-log-result,x-fc-invocation-code-version',

    'content-type': 'application/json',

    'x-fc-code-checksum': '13110806949608216834',

    'x-fc-error-type': 'UnhandledInvocationError',

    'x-fc-instance-id': 'c-63eb459b-d9b3369a8df549f28a2f',

    'x-fc-invocation-duration': '3190',

    'x-fc-invocation-service-version': 'LATEST',

    'x-fc-max-memory-usage': '15.95',

    'x-fc-request-id': '43547093-4ad3-491e-bdac-2fcd9830e589',

    date: 'Tue, 14 Feb 2023 08:26:10 GMT',

    'content-length': '116' },

    size: 116,

    aborted: false,

    rt: 2041,

    keepAliveSocket: false,

    data:

    { errorMessage: 'Process exited unexpectedly before completing request (duration: 1876ms, maxMemoryUsage: 15.95MB)' },

    requestUrls: [ 'https://api.forchange.cn/' ],

    timing: null,

    remoteAddress: '47.107.4.63',

    remotePort: 443,

    socketHandledRequests: 1,

    socketHandledResponses: 1 } }

    2023-02-15 10:21

  • sk_in_china (作者)

    回复 sk_in_china: 偶发的概率比正常的概率大

    2023-02-15 10:27

  • DCloud_uniCloud_CRL

    回复 sk_in_china: 你是在云函数中请求了阿里云云函数吗?

    2023-02-15 11:09

  • sk_in_china (作者)

    回复 DCloud_uniCloud_CRL: 不是,我是在云函数中请求外部api

    2023-02-15 13:13

  • DCloud_uniCloud_CRL

    回复 sk_in_china: 看请求的url是部署在阿里云函数计算上的,这个错误是函数计算返回的,不是云函数的。可能原因是请求超时导致。

    2023-02-15 14:51

  • sk_in_china (作者)

    回复 DCloud_uniCloud_CRL: 好的,谢谢您

    2023-02-16 11:00

要回复问题请先登录注册