真机调试,调用ocrText云函数,向其传buffer时,图片几十k就就导致调用云函数超时
如果换成图片很小的,几k的大小就可以正确调用云函数。 WAServiceMainContext.js:2 (in promise) MiniProgramError cloud.callFunction:fail -404012 polling exceed max timeout retry. (callId: 1646458468314-0.7419272625279247) (trace: 13:34:28 start->13:34:28 app show->13:34:43 timeout, retry->13:34:58 app hide->13:34:58 timeout, retry->13:35:2 app show->13:35:4 app hide->13:35:13 timeout, abort) Error: cloud.callFunction:fail -404012 polling exceed max timeout retry. (callId: 1646458468314-0.7419272625279247) (trace: 13:34:28 start->13:34:28 app show->13:34:43 timeout, retry->13:34:58 app hide->13:34:58 timeout, retry->13:35:2 app show->13:35:4 app hide->13:35:13 timeout, abort) at S (WASubContext.js:2:242573) at Function.<anonymous> (WASubContext.js:2:265437) at Generator.next (<anonymous>) at n (WASubContext.js:2:2196) at s (WASubContext.js:2:2399) https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.printedText.html