线上微信小程序获取本地存储时报错,通过onError接口捕捉到了错误日志。日志中包含了错误的具体信息和当前使用手机型号和微信客户端具体信息,具体错误日志如下:
"error": {
"errorMessage": "webviewSDKScriptError",
"description": "Failed get storage group metadata;getGlobalStorage:fail:data not found",
"detail": {
"1": "Error: Failed get storage group metadata",
"2": " at Ke (
:4:20578)",
"3": " at :4:23185",
"4": " at Object.w (:1:2398)",
"5": " at Object.ret.invokeCallbackHandler (:21:28)",
"6": " at :1:67"
}
},
"currentPage": {
"__wxExparserNodeId__": "aa4f6e27",
"__route__": "pages/addPolicy/addPolicy",
"route": "pages/addPolicy/addPolicy",
"__displayReporter": {
"showOptions": {
"scene": 1005,
"scene_note": "::13817515574007588371:3849032081:1:1::1541070993942:::::64::3",
"sessionid": "SessionId@249656585#1541070993981",
"usedstate": 2,
"referpagepath": "com.tencent.mm.plugin.appbrand.report.model.h%24b%40ca0e2c8",
"clickTimestamp": 1541071291819,
"prescene": 0,
"prescene_note": "",
"publicLibVersion": "2.3.0",
"query": ""
},
"hideOptions": {
"targetAction": 7,
"targetPagePath": ""
},
"route": "pages/addPolicy/addPolicy",
"pageType": 2,
"deferred": [],
"showTimeStamp": 1541071449851,
"pageReadyTime": 1541071291945,
"lastSessionId": "SessionId@249656585#1541070993981",
"entrancePage": "pages/addPolicy/addPolicy",
"lastPageRoute": "pages/addPolicy/addPolicy"
},
"options": {}
},
"breadcrumb": {
"time": "2018/11/01 19:24:09",
"belong": "Page",
"route": "pages/addPolicy/addPolicy",
"options": {}
},
"networkType": "4g",
"systemInfo": {
"screenWidth": 360,
"statusBarHeight": 18,
"pixelRatio": 3,
"system": "Android 7.1.1",
"benchmarkLevel": 13,
"windowWidth": 360,
"deviceOrientation": "portrait",
"brand": "OPPO",
"version": "6.7.3",
"screenHeight": 640,
"fontSizeSetting": 16,
"language": "zh_CN",
"windowHeight": 574,
"model": "OPPO R11 Plusk",
"platform": "android",
"SDKVersion": "2.3.0"
}
}
貌似getGlobalStorage接口挂了,即使没有数据那么得到应该是个空字符串吧(根据接口自测,推测),出错页面调用的实际接口为:getStorageSync
微信小程序开发问题解答
微信小程序开发者回答:
这个问题在新的版本已经修复了,一部分没有更新到新的基础库用户可能还在抛,自动升级到新版本就没问题了
微信小程序开发者回答:
已经修复的新版本是微信哪个版本?
微信小程序开发者回答:
现在Android系统的微信最新版本不是6.7.3吗,这个日志中的微信版本就是6.7.3啊
微信小程序开发者回答:
基础库版本 2.3.1 及以上
微信小程序开发者回答:
2.3.1的推送计划是怎么样的?开始推送了吗?
微信小程序开发者回答:
你好,麻烦提供下appid
微信小程序开发者回答:
wxaf85470efe4d2d53
微信小程序开发者回答:
我们的监控系统里也监控到很多这个错误,全是android手机,希望官方处理一下
本文网址:http://www.91bianli.com/kaifazhinan/78183.html