微信小程序云函数定时执行,本地调试没问题,定时执行肯定报错?

发布于 6 年前作者 shaofang12620 次浏览最后编辑 6 年前来自 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 回复
sfeng
sfeng1 楼4 年前

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