一模一样的问题,期待答案 我发现推送老版本基础库到手机端问题就消失了,肯定是基础库什么地方不兼容实时推送的语句了
请问实时数据推送,在手机端报错怎么处理?刚刚好了没几天,又出现了这样的问题了,还是云开发数据库watch监听的bug,请官方管理员来看一下。 下面是6月12日发的求助内容: 昨天上午还好好的,晚上就报错了。调试了整晚,手机端还是这个错误。偏偏在微信开发者工具上是正常的。 这是由手机端监听云开发数据库引发的错误,我把监听函数注释掉,就不报这个错误信息了。 Uncaught (in promise) FrameworkError <TypeError: Cannot add property Map, object is not extensible> <TypeError: Cannot add property Map, object is not extensible><div class="eruda-json eruda-hidden"></div> at e.value (wagame://servicewechat.com/WAGameVConsole.html:27576:37895) at new e (wagame://servicewechat.com/WAGameVConsole.html:27576:36659) at t.value (wagame://servicewechat.com/WAGameVConsole.html:27576:32217) at t.value (wagame://servicewechat.com/WAGameVConsole.html:27576:31461) at f.e.<computed> [as error] (wagame://servicewechat.com/WAGameVConsole.html:27576:16382) at wagame://servicewechat.com/WAGameVConsole.html:27576:19192 at Array.forEach (<anonymous>) at console._log (wagame://servicewechat.com/WAGameVConsole.html:27576:19080) at <anonymous>:1:9 代码片段: var db = wx.cloud.database(); var watcher1 = db.collection('game_rooms'); //监听游戏房间玩家信息更新情况: if (nowRoom.roomID != "" && G.inRoom == 1) { console.log("nowRoom.roomID",nowRoom.roomID); watcher1.where({ _id: nowRoom.roomID }).watch({ onChange: function(snapshot) { console.log('query result snapshot after the event', snapshot.docs); // 监听游戏房间数据:玩家1,玩家2,的信息,在此房间的游戏得分,剩余时间 }, onError: function (err) { console.error('the gameRoom watch1 closed because of error', err) } }); } 报错信息: the gameRoom watch1 closed because of error <Error: errCode: -402012 realtime listener init ws fail | errMsg: errors of each retry (latest to oldest): ["[object Object]","TypeError: Cannot add property Map, object is not extensible","TypeError: Cannot add property Map, object is not extensible","TypeError: Cannot add property Map, object is not extensible","TypeError: Cannot add property Map, object is not extensible","TypeError: Cannot add property Map, object is not extensible"] history states: UNINIT-(close)->CLOSED>
2020-06-19我把所有含有return的语句都改了,情况依旧 最怪异的是本地调试都没问题啊?
云函数本地测试没问题,部署到云端却操作数据库失效该云函数在本地测试时可以顺利实现数据库的操作,但在云端测试时却失效,数据库没有顺利更新 将云端调用的日志及相关信息粘贴如下: 内存使用 32.74 MB Request ID f90f941b-6ff3-11ea-a61f-525400697544 调用状态 成功 返回结果 {"event":{"gs":1,"pos":0,"rn":1}} 调用日志 START RequestId: f90f941b-6ff3-11ea-a61f-525400697544 Event RequestId: f90f941b-6ff3-11ea-a61f-525400697544 END RequestId: f90f941b-6ff3-11ea-a61f-525400697544 Report RequestId: f90f941b-6ff3-11ea-a61f-525400697544 Duration:9ms Memory:256MB MaxMemoryUsed:32.742188MB
2020-03-27对,云函数本地调试可顺利更新数据库,但部署到云端就无效了
云函数查询数请求api报错{"errCode":-501001,"errMsg":"openapi.subscribeMessage.send:fail ETIMEDOUT; at openapi.subscribeMessage.send api; "} Error: errCode: -501001 resource system error | errMsg: collection.get:fail ETIMEDOUT; at collection.get api;
2020-03-271.02.1911180,应该是最新版本
canvas 的 ctx在设置FontSize后,对fillText无效?各位高手,我是菜鸟,请多包涵 我开发的小游戏在预览时发现字体太大了,想调节字体大小,于是写入以下代码: ctx.FontSize='10' 结果发现在模拟器上,无论FontSize填写什么值,都对ctx.fillText无效。 问题:我该如何调节字体的大小呢?
2020-03-20