VM1420:2 Error: cloud.callFunction:fail -404012 polling exceed max timeout retry. (callId: 1628330900888-0.5979251458522361) (trace: 18:8:20 start->18:8:37 timeout, retry->18:8:53 timeout, retry->18:9:8 timeout, abort)
at an (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:635391)
at Function.eval (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:648521)
at Generator.next (<anonymous>)
at r (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1031)
at s (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1234)
at eval (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1293)
at new V (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:58300)
at Function.eval (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1174)
at u (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:114070)
at eval (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:114522)
开发者工具里面调式就不会,为什么啊
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
wx.cloud.callFunction({
name: 'getXlsx',
data: {
dataBuffer: data,
filename: note
}
})
你的东西有多大,我超过100kb就报错了
我的知道原因了,记录一下。我的情况是本地给云函数上传一张图片让云函数处理,使用wx.chooseMedia拍摄或选择图片,当选择相册里的图片上传时云函数就会报错,估计时图片规格不合法,云函数处理不了,使用微信拍摄的照片就没问题。目前把chooseMedia的参数设置成只能拍照避免这个报错问题了