从运维中心发现好几个数据缓存接口错误: APP-SERVICE-SDK:setStorageSync:fail 该问题无法手动复现BUG,但有好几次用户反馈出现小程序出现错误,估计与该接口有关,因为小程序配置方面信息存储在Storage当中,官方有解答吗
今天发现这个这个错误,希望尽快解答
APP-SERVICE-SDK:setStorageSync:fail Error: Failed To Send Sync;at pages/index/index onReady function;at api request success callback function
Error: APP-SERVICE-SDK:setStorageSync:fail Error: Failed To Send Sync
onLoad(options) {
var that=this;
wx.login({
success: function (res) {
if (res.code) {
//发起网络请求
wx.request({
url: service.login, //请求地址
method: "POST",
header: {
"Content-Type": "application/x-www-form-urlencoded"
},
data: { code: res.code },
success: function (res) {
if(res.statusCode == 200 && res.data.code == 200){
//为了转发获取userId而存取缓存wx.setStorageSync("userInfo", res.data.data.userInfo);
为何这样会报错。
APP-SERVICE-SDK:setStorageSync:fail write DB data fail;at pages/square/squareDetail onShow function;at api request success callback function