收藏
回答

把小程序后端迁移到云开发,用到了数据库监听,现在错误日志里全是监听的报错?

current state (CLOSED) does not accept "initWatchFail"
Error: current state (CLOSED) does not accept "initWatchFail"
at e.value (https://lib/WASubContext.js:2:354011)
at Object.onTimeoutError (https://lib/WASubContext.js:2:362509)
at e.handleCommonError (https://lib/WASubContext.js:2:366071)
at https://lib/WASubContext.js:2:362296
at l (https://lib/WASubContext.js:2:66032)
at Generator._invoke (https://lib/WASubContext.js:2:65820)
at Generator.next (https://lib/WASubContext.js:2:66457)
at r (https://lib/WASubContext.js:2:1656)
at s (https://lib/WASubContext.js:2:1859)
at https://lib/WASubContext.js:2:1918


current state (CLOSED) does not accept "initWatchFail"
construct@[native code]
a@https://lib/WASubContext.js:2:9386
https://lib/WASubContext.js:2:3628
n@https://lib/WASubContext.js:2:355261
value@https://lib/WASubContext.js:2:354017
onTimeoutError@https://lib/WASubContext.js:2:362519
https://lib/WASubContext.js:2:366085
https://lib/WASubContext.js:2:362313
l@https://lib/WASubContext.js:2:66036
https://lib/WASubContext.js:2:65821
r@https://lib/WASubContext.js:2:1656
s@https://lib/WASubContext.js:2:1860
https://lib/WASubContext.js:2:1919
j@https://lib/WASubContext.js:2:56486
https://lib/WASubContext.js:2:1810
https://lib/WASubContext.js:2:359799
l@https://lib/WASubContext.js:2:66036
https://lib/WASubContext.js:2:65821
r@https://lib/WASubContext.js:2:1656
c@https://lib/WASubContext.js:2:1896
https://lib/WASubContext.js:2:55265
r@https://lib/WASubContext.js:2:32365
https://lib/WASubContext.js:2:42182
I@https://lib/WASubContext.js:2:41907
https://lib/WASubContext.js:2:41945
l@https://lib/WASubContext.js:2:110842
https://lib/WASubContext.js:2:91733
https://lib/WASubContext.js:2:104008
u@https://lib/WAServiceMainContext.js:2:117054
https://lib/WAServiceMainContext.js:2:109701


current state (DISCONNECTED) does not accept "connectionSuccess"
construct@[native code]
a@https://lib/WASubContext.js:2:9386
https://lib/WASubContext.js:2:3628
n@https://lib/WASubContext.js:2:355261
value@https://lib/WASubContext.js:2:354017
https://lib/WASubContext.js:2:386608
l@https://lib/WASubContext.js:2:66036
https://lib/WASubContext.js:2:65821
r@https://lib/WASubContext.js:2:1656
s@https://lib/WASubContext.js:2:1860
https://lib/WASubContext.js:2:55265
r@https://lib/WASubContext.js:2:32365
https://lib/WASubContext.js:2:42182
I@https://lib/WASubContext.js:2:41907
https://lib/WASubContext.js:2:41945
l@https://lib/WASubContext.js:2:110842
https://lib/WASubContext.js:2:91733
https://lib/WASubContext.js:2:104008
u@https://lib/WAServiceMainContext.js:2:117054
https://lib/WAServiceMainContext.js:2:109701


android、iOS都有,客户端版本806 807都有,基础库版本2.18.0,APPID wx8dffe6af7f48e10a

回答关注问题邀请回答
收藏

2 个回答

  • 疯狂的小辣椒
    疯狂的小辣椒
    2021-07-21

    你好,麻烦给下相关代码和requestID

    2021-07-21
    有用
    回复 5
  • 孤舟蓑笠翁
    孤舟蓑笠翁
    2021-07-20

    云开发的监听就是这样 习惯就好了 这种大量报错已经持续一年了 已经屏蔽这种报错警告 或者监听服务不要用云开发监听

    2021-07-20
    有用
    回复 1
    • 许周潮
      许周潮
      2021-08-04
      如果用了云数据库,除了云开发的监听还有其他方案监听吗
      2021-08-04
      回复
登录 后发表内容