- 小程序云数据库watch监听失败,错误码 -402012,怎么解决?
之前好好的,昨天到现在一直这样,开发工具上正常,手机预览就报错。我用的是安卓手机。 <Error: errCode: -402012 realtime listener init ws fail | errMsg: errors of each retry (latest to oldest): ["[object Object]","[object Object]","[object Object]","[object Object]","[object Object]","[object Object]"] history states: UNINIT-(close)->CLOSED> Error: errCode: -402012 realtime listener init ws fail | errMsg: errors of each retry (latest to oldest): ["[object Object]","[object Object]","[object Object]","[object Object]","[object Object]","[object Object]"] history states: UNINIT-(close)->CLOSED at Ts.<anonymous> (https://lib/WACloud.js:1:308382) at Generator.next (<anonymous>) at t (https://lib/WACloud.js:1:375) at s (https://lib/WACloud.js:1:586)
2023-09-15 - db.command.push新增一条数据结果却是新增了一个长度为一的数组?
db.command.push新增一条数据结果却是新增了一个长度为一的数组 这个是我添加前打出来的日志2019-10-13T08:20:22.436Z { amount: 1, avatarUrl: '', createTime: 1570954822026, creator: '', date: '2019-10-13', editTime: 1570954822026, nickName: '将何往', picturePathes: [], remark: '', tags: [ '其他' ], type: 'pay', voicePathes: [] } 这个时系统打印的日志2019-10-13T08:20:22.437Z [ { amount: 1, avatarUrl: '', createTime: 1570954822026, creator: '', date: '2019-10-13', editTime: 1570954822026, nickName: '将何往', picturePathes: [], remark: '', tags: [ '其他' ], type: 'pay', voicePathes: [] } ]
2019-10-13