好像是,各种报错
云又挂了是么VM1042:1 Error: errCode: -1 | errMsg: systerm error. at new t (WACloud.js:1) at Function.success (WACloud.js:1) at Object.success (WAService.js:3) at c (WAService.js:4) at Function.<anonymous> (WAService.js:4) at n.function.setTimeout (appservice?t=1540213479724:6697) at WAService.js:3 at WAService.js:8 console.error @ VM1042:1 Promise rejected (async) success @ index.js? [sm]:602 (anonymous) @ WAService.js:3 (anonymous) @ WAService.js:10 s.emit @ WAService.js:4 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 e @ appservice?t=1540213479724:6697 (anonymous) @ appservice?t=1540213479724:6697 t.emit @ appservice?t=1540213479724:6697 callback @ appservice?t=1540213479724:6697 setTimeout @ appservice?t=1540213479724:6697 (anonymous) @ WAService.js:3 (anonymous) @ WAService.js:8 setTimeout (async) setTimeout @ WAService.js:8 d @ appservice?t=1540213479724:6697 o @ appservice?t=1540213479724:6697 y.onreadystatechange @ appservice?t=1540213479724:6697 XMLHttpRequest.send (async) h @ appservice?t=1540213479724:6697 createRequestTask @ appservice?t=1540213479724:6697 invoke @ appservice?t=1540213479724:6697 o @ WAService.js:4 c @ WAService.js:4 r @ WAService.js:10 e @ WAService.js:10 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 success @ index.js? [sm]:587 (anonymous) @ WAService.js:3 (anonymous) @ WAService.js:10 s.emit @ WAService.js:4 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 e @ appservice?t=1540213479724:6697 (anonymous) @ appservice?t=1540213479724:6697 t.emit @ appservice?t=1540213479724:6697 callback @ appservice?t=1540213479724:6697 setTimeout @ appservice?t=1540213479724:6697 (anonymous) @ WAService.js:3 (anonymous) @ WAService.js:8 setTimeout (async) setTimeout @ WAService.js:8 d @ appservice?t=1540213479724:6697 o @ appservice?t=1540213479724:6697 y.onreadystatechange @ appservice?t=1540213479724:6697 XMLHttpRequest.send (async) h @ appservice?t=1540213479724:6697 createRequestTask @ appservice?t=1540213479724:6697 invoke @ appservice?t=1540213479724:6697 o @ WAService.js:4 c @ WAService.js:4 r @ WAService.js:10 e @ WAService.js:10 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 success @ index.js? [sm]:579 (anonymous) @ WAService.js:3 c @ WAService.js:4 (anonymous) @ WAService.js:4 function.setTimeout @ appservice?t=1540213479724:6697 (anonymous) @ WAService.js:3 (anonymous) @ WAService.js:8 setTimeout (async) setTimeout @ WAService.js:8 v @ appservice?t=1540213479724:6697 r.registerCallback.t @ appservice?t=1540213479724:6697 l.forEach.t @ appservice?t=1540213479724:6697 (anonymous) @ appservice?t=1540213479724:6697 i.onmessage @ appservice?t=1540213479724:6697 VM1042:1 Error: errCode: -1 | errMsg: systerm error. at new t (WACloud.js:1) at Function.success (WACloud.js:1) at Object.success (WAService.js:3) at c (WAService.js:4) at Function.<anonymous> (WAService.js:4) at n.function.setTimeout (appservice?t=1540213479724:6697) at WAService.js:3 at WAService.js:8 又挂了啊。这几天第二次了。
2018-10-22遇到同样问题,原因是云开发sdk的bug. 你看一下你云函数目录下,package-lock.json里面wx-server-sdk的版本号是多少。 测试用0.0.19可以正常_.push.但小于0.0.20的版本在update嵌套JSON时会出错。 受不了了。 过一段时间有空还是重构一下版本。靠别人api过日子,各种bug搞死人。
云开发update时出错,push指令。社区内类似问题没有答案[图片] 按文档写的,push指令不行
2018-10-20你好,请问问题确认了吗?
云开发数据库服务端api不支持update嵌套对象- 当前 Bug 的表现(可附上截图) 数据结构1如下: [代码]日期1:{[代码] [代码] id1:{姓名1:{属性1:属性1的值;属性2 :属性2的值}}[代码][代码] [代码]id2:{姓名2:{属性1:属性1的值;属性2 :属性2的值}} } [代码][代码][代码] [代码] 或者数据结构2如下: 日期1:[[id1,姓名1,性别,时间],[id2,姓名2,性别,时间]] 使用服务端api doc.update或者collection.update写入如上两种结构的数据时,只会写入id1第一个字段的数据。使用command.set或者使用小程序端api则可以正确写入所有数据。但command.set是替换整个字段,不便局部增加数据,小程序端api则会有权限限制,均不能解决问题。 一句话:当数据结构为嵌套对象或数组时,服务端api只能update第一层第一个字段的数据。 典型场景:一个周期性签到应用,老师创建的doc,多名学生需要能分别写入自己的签到数据,而数据是分日期、人员、属性几个层次。 9.23日有人提出类似问题,未见答复。链接在此 因为小程序端api或者管理后台手动添加是可以支持嵌套的,所以问题应该是在服务端api上。且与客户端基础库无关(工具里云函数测试也是一样)。 希望能尽快确认问题并修复,否则就只能放弃云开发,整个应用重构,这个问题也严重制约了云开发的能力。
2018-10-09