- setStorageSync使用报错?
最近1,2周开始出现。 如下报错,之前没出现, 报错1: Error: APP-SERVICE-SDK:setStorageSync:fail:internal error get DB fail Error: APP-SERVICE-SDK:setStorageSync:fail:internal error get DB fail at setStorageSync (https://lib/WAGame.js:1:328863) 报错2: APP-SERVICE-SDK:setStorageSync:fail write DB data fail;at api request success callback function construct@[native code] r@https://lib/WAGame.js:2:690767 n@https://lib/WAGame.js:2:690094 https://lib/WAGame.js:2:775563 r@https://lib/WAGame.js:2:776042 setStorageSync@https://lib/WAGame.js:2:777003 https://lib/WAGame.js:2:775900 https://lib/WAGame.js:2:736447 https://lib/WAGame.js:2:599871 https://lib/WAGame.js:2:548100 https://lib/WAGame.js:2:547673 报错3: Error line:2,column:690767,Error: APP-SERVICE-SDK:setStorageSync:fail write DB data fail Stack:construct@[native code] r@https://lib/WAGame.js:2:690767 n@https://lib/WAGame.js:2:690094 https://lib/WAGame.js:2:775563 r@https://lib/WAGame.js:2:776042 setStorageSync@https://lib/WAGame.js:2:777003 https://lib/WAGame.js:2:775900 https://lib/WAGame.js:2:736447 https://lib/WAGame.js:2:599871 https://lib/WAGame.js:2:548100 https://lib/WAGame.js:2:547673 t@https://lib/WAGameSubContext.js:2:148289 客户端版本 7.0.12 7.0.11
2020-04-13 - setStorageSync使用报错?
近期出现大量 如下报错 报错1: Error: APP-SERVICE-SDK:setStorageSync:fail:internal error get DB fail Error: APP-SERVICE-SDK:setStorageSync:fail:internal error get DB fail at setStorageSync (https://lib/WAGame.js:1:328863) 报错2: APP-SERVICE-SDK:setStorageSync:fail write DB data fail;at api request success callback function construct@[native code] r@https://lib/WAGame.js:2:690767 n@https://lib/WAGame.js:2:690094 https://lib/WAGame.js:2:775563 r@https://lib/WAGame.js:2:776042 setStorageSync@https://lib/WAGame.js:2:777003 https://lib/WAGame.js:2:775900 https://lib/WAGame.js:2:736447 https://lib/WAGame.js:2:599871 https://lib/WAGame.js:2:548100 https://lib/WAGame.js:2:547673 报错3: Error line:2,column:690767,Error: APP-SERVICE-SDK:setStorageSync:fail write DB data fail Stack:construct@[native code] r@https://lib/WAGame.js:2:690767 n@https://lib/WAGame.js:2:690094 https://lib/WAGame.js:2:775563 r@https://lib/WAGame.js:2:776042 setStorageSync@https://lib/WAGame.js:2:777003 https://lib/WAGame.js:2:775900 https://lib/WAGame.js:2:736447 https://lib/WAGame.js:2:599871 https://lib/WAGame.js:2:548100 https://lib/WAGame.js:2:547673 t@https://lib/WAGameSubContext.js:2:148289 之前没出现,最近1,2周开始出现。 客户端版本 7.0.12 7.0.11
2020-04-13 - mkdirSync:fail
大致代码如下: var TxGame = {funcEnable:{}}; window.TxGame = TxGame; TxGame.env = wx.env; TxGame.fs = wx.getFileSystemManager(); TxGame.access = TxGame.fs.access; TxGame.mkdirSync = TxGame.fs.mkdirSync; WeiXinFileManager.LAYA_DOC = "/layaairGame/"; var M = WeiXinFileManager; M.USE_DOC = TxGame.env.USER_DATA_PATH; M.LAYA_DOC = TxGame.env.USER_DATA_PATH + M.LAYA_DOC; M.TX_FILE_LIST = M.LAYA_DOC + M.TX_FILE_LIST; this.fileListLoad = false; TxGame.access({ path: M.LAYA_DOC, success: function () { console.log("文件夹存在:" + WeiXinFileManager.LAYA_DOC); // WeiXinFileManager.getIns().scanFiles(); var me = M.getIns(); me.loadFileList(); Laya.timer.frameLoop(1, me, me.onFrameUpdate); }, fail: function (data) { console.warn(data.errMsg); var me = M.getIns(); var result = TxGame.mkdirSync(M.LAYA_DOC, false); if (result) console.error(result.errMsg); else { console.log("文件创建完成:" + M.LAYA_DOC); me.fileListLoad = true; me.downNext(); Laya.timer.frameLoop(1, me, me.onFrameUpdate); } }); 以前没有出现报错,26号微信后台开始出现报错。 mkdirSync:fail no such file or directory "wxfile://usr/layaairGame/";at api access fail callback function Error: mkdirSync:fail no such file or directory "wxfile://usr/layaairGame/" at mkdirSync (https://lib/WAGame.js:2:677712) at Object.e.<computed> (https://lib/WAGame.js:2:681863) at Object.fail (https://lib/WAGame.js:2:486409) at v (https://lib/WAGame.js:2:494046) at https://lib/WAGame.js:2:495205 at Object.g (https://lib/WAGame.js:2:72747) mkdirSync:fail no such file or directory "wxfile://usr/layaairGame/";at api access fail callback function mkdirSync:fail no such file or directory "wxfile://usr/layaairGame/";at api access fail callback function Error: mkdirSync:fail no such file or directory "wxfile://usr/layaairGame/" at mkdirSync (https://lib/WAGame.js:1:545870) at Object.e.(anonymous function) (https://lib/WAGame.js:1:550148) at Object.f.(anonymous function) (https://lib/WAGame.js:1:1104257) at RO (https://lib/WAGame.js:1:1102733) at Function.fail (https://lib/WAGame.js:1:1104449) at Object.fail (https://lib/WAGame.js:1:425074) at https://lib/WAGame.js:1:431884 at v (https://lib/WAGame.js:1:432053) at https://lib/WAGame.js:1:432917 at Object.v (https://lib/WAGame.js:1:1447) 请问是什么原因导致出现的此问题,无法复现
2019-12-30 - n.callback is not a function;at api requestVirtual
在微信后台,看到几条如下报错: n.callback is not a function;at api requestVirtualPayment complete callback function TypeError: n.callback is not a function at https://lib/WAGame.js:1:416645at Function.complete (https://lib/WAGame.js:1:423916)at Object.complete (https://lib/WAGame.js:1:203259)at dt (https://lib/WAGame.js:1:266875)at https://lib/WAGame.js:1:267776at Object.m (https://lib/WAGame.js:1:1353) 目前无法重现。 调用支付的代码如下: var c = b.callbackUrl; wx.requestMidasPayment({ mode: b.mode, env: b.env, offerId: b.offerId, currencyType: b.currencyType, platform: b.platform, buyQuantity: b.buyQuantity, zoneId: b.zoneId, success: function() { console.log("success," + c), wx.request({ url: c }) }, fail: function() { console.log("fail," + b.callbackUrlFail) } }) 请问是什么原因导致的报错,该如何解决?
2019-12-13