AppID:wxbf19496775e3e360、云函数环境 ID:cloud1-1ga4vnddac47de6e
微信小程序调用云函数,实现腾讯云ocr身份证、银行卡识别,PC端开发调试没问题,而真机调试报一下错误,谁能解决下:
<Error: cloud.callFunction:fail Error (callId: 1769477346615-0.5743820171829543) (trace: 9:29:6 start->9:29:14 system error (Error), retry->9:29:23 system error (Error), retry->9:29:31 system error (Error), abort)>
Error: cloud.callFunction:fail Error (callId: 1769477346615-0.5743820171829543) (trace: 9:29:6 start->9:29:14 system error (Error), retry->9:29:23 system error (Error), retry->9:29:31 system error (Error), abort)
at N (https://lib/WACloud.js:1:255194)
at https://lib/WACloud.js:1:293136

1、错误信息
<Error: cloud.callFunction:fail Error (callId: 1769477346615-0.5743820171829543) (trace: 9:29:6 start->9:29:14 system error (Error), retry->9:29:23 system error (Error), retry->9:29:31 system error (Error), abort)>
Error: cloud.callFunction:fail Error (callId: 1769477346615-0.5743820171829543) (trace: 9:29:6 start->9:29:14 system error (Error), retry->9:29:23 system error (Error), retry->9:29:31 system error (Error), abort)
at N (https://lib/WACloud.js:1:255194)
at https://lib/WACloud.js:1:293136
2、真机调试操作
与开发者平台调试方式一样,真机上传身份证正面之后,代码会获取身份证照片转base64,再调用云函数ocr接口,传入参数,云函数调用腾讯云接口获取返回后的数据。
3、代码片段
腾讯云API密钥配置没问题,PC端都能正常调用