收到有不少客户的反映,大部分是iPhone6s的说我们的小程序提示错误。从后台日志看到了以下错误,从错误提示上理解,应该是调用
getStorage出现了异常,这个是什么问题呀?
webviewSDKScriptError Failed get storage group metadata;getGlobalStorage:fail:access denied Error: Failed get storage group metadata at Ke (<anonymous>:44:20578) at <anonymous>:44:23185 at Object.w (<anonymous>:41:2398) at Object.ret.invokeCallbackHandler (<anonymous>:21:28) at <anonymous>:1:67
堆栈信息
error
webviewSDKScriptError Failed get storage group metadata;getGlobalStorage:fail:access denied Error: Failed get storage group metadata at Ke (<anonymous>:44:20578) at <anonymous>:44:23185 at Object.w (<anonymous>:41:2398) at Object.ret.invokeCallbackHandler (<anonymous>:21:28) at <anonymous>:1:67
webviewSDKScriptError
Failed get storage group metadata;getGlobalStorage:fail:access denied
Error: Failed get storage group metadata
at Ke (<anonymous>:44:20578)
at <anonymous>:44:23185
at Object.w (<anonymous>:41:2398)
at Object.ret.invokeCallbackHandler (<anonymous>:21:28)
at <anonymous>:1:67
以下是在app.js写的调用方法
//获取缓存
getStorage(key) {
return new Promise((resolve, reject) => {
wx.getStorage({
key: key,
success: function (res) {
resolve(res.data);
}, fail: function (res) {
resolve(null);
}
})
})
}
同遇到,不知道什么原因
这个问题解决了吗,我的小程序也是报这个错误
同问
一堆这样的报错
同问,这周才发生的