小程序
小游戏
企业微信
微信支付
扫描小程序码分享
目前发现,文件稍大,在真机上调试的时候同步读取文件会超时,异步读取文件久久等不到回调。手机的型号是iPhone 11 Pro,微信的版本是8.0.10。代码片段如下:https://developers.weixin.qq.com/s/n6HbuCmY7psp 。
此项目涉及滑雪学校的小程序开发,是冬奥的保障项目,请尽快解答!
1 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
https://developers.weixin.qq.com/miniprogram/dev/framework/ability/file-system.html
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
https://developers.weixin.qq.com/miniprogram/dev/framework/ability/file-system.html
MiniProgramError
readFileSync:fail timeout
Error: readFileSync:fail timeout
at g (eval at n.call.document (http://127.0.0.1:63013/remote-debug/runtime.js?devtools_ignore=true:1:14662), <anonymous>:2:1216162)
at Object.n.<computed> (eval at n.call.document (http://127.0.0.1:63013/remote-debug/runtime.js?devtools_ignore=true:1:14662), <anonymous>:2:1213800)
at Object.t.<computed> [as readFileSync] (eval at n.call.document (http://127.0.0.1:63013/remote-debug/runtime.js?devtools_ignore=true:1:14662), <anonymous>:2:1172359)
at success (weapp:///pages/test/upload/choose_video_upload.js:68:29)
at v (eval at n.call.document (http://127.0.0.1:63013/remote-debug/runtime.js?devtools_ignore=true:1:14662), <anonymous>:2:1170271)
at r.success (eval at n.call.document (http://127.0.0.1:63013/remote-debug/runtime.js?devtools_ignore=true:1:14662), <anonymous>:2:1172576)
at <api chooseMedia success callback function>
at Object.eval [as success] (eval at n.call.document (http://127.0.0.1:63013/remote-debug/runtime.js?devtools_ignore=true:1:14662), <anonymous>:2:114523)
at r (eval at n.call.document (http://127.0.0.1:63013/remote-debug/runtime.js?devtools_ignore=true:1:14662), <anonymous>:2:1192403)
at eval (eval at n.call.document (http://127.0.0.1:63013/remote-debug/runtime.js?devtools_ignore=true:1:14662), <anonymous>:2:1192586)
errorReport @ VM13:2
thirdErrorReport @ VM13:2
eval @ VM13:2
u @ VM13:2
eval @ VM13:2
r @ VM13:2
eval @ VM13:2
v @ VM13:2
eval @ VM13:2
y @ VM13:2
ie @ runtime.js?devtools_ignore=true:1
je @ runtime.js?devtools_ignore=true:1
Be.Je.onmessage @ runtime.js?devtools_ignore=true:1