微信小程序云函数定时执行,本地调试没问题,定时执行肯定报错?
发布于 5 年前 作者 shaofang 12428 次浏览 来自 官方Issues

程序里没有写settimeout.只用了async await + request-promise

云函数报错信息:

返回结果

{“errorCode”:-1,“errorMessage”:“Async invoking task timed out after 2 seconds”,“statusCode”:433}

日志

START RequestId:5fd1044c-7caf-11eb-ab44-52540014dd16

ERROR RequestId:5fd1044c-7caf-11eb-ab44-52540014dd16 Result:{“errorCode”:-1,“errorMessage”:“Async invoking task timed out after 2 seconds”,“statusCode”:433} 

END RequestId:5fd1044c-7caf-11eb-ab44-52540014dd16

Report RequestId:5fd1044c-7caf-11eb-ab44-52540014dd16 Duration:2000ms Memory:256MB MemUsage:38.183594MB

1 回复

云函数有3秒执行时间限制

回到顶部