都2023年了,还没解决。放弃呢又要花时间码砖,没时间~
watch频繁不定时出现错误:Error: errCode: -402002 ?Error: errCode: -402002 realtime listener init watch fail | errMsg: login fail Error: invalid state: ws connection not exists, can not send message history states: UNINIT-(loginStart)->INIT_LOGGING_IN-(loginFail)->INIT_LOGIN_FAIL-(loginStart)->INIT_LOGGING_IN-(loginFail)->INIT_LOGIN_FAIL-(loginStart)->INIT_LOGGING_IN-(loginFail)->INIT_LOGIN_FAIL-(close)->CLOSED at _FSMListener (VM1158 WAService.js:2) at VM1158 WAService.js:2 at Set.forEach (<anonymous>) at _l.transition (VM1158 WAService.js:2) at fc.<anonymous> (VM1158 WAService.js:2) at Generator.throw (<anonymous>) at n (VM1158 WAService.js:2) at l (VM1158 WAService.js:2) at VM1158 WAService.js:2 at n (VM1158 WAService.js:2)(env: Windows,mp,1.05.2110290; lib: 2.21.0) errMsg内容也不都是这个,各种都有。
2023-07-01Error: errCode: -402002 realtime listener init watch fail | errMsg: login fail Error: wsclient.send timedout 今天我的程序又大面积出现这个问题了,腾讯官方,能否管一管?? 看来后续这个watch监听能不用就不要用了,还不成熟稳定!!
云开发使用watch监听,经常报402002异常,如何解决?我的小程序使用了watch监听函数,目前经常报错,报错概率非常高,影响了小程序用户的使用体验,麻烦给查一下一下吧 报异常时就是等待十多秒后报出异常。。。 我的APPID为:wxdaf4eb13f330c75b 异常截图: [图片] 代码片: this.messageListener = await roomModel.model.doc(roomId).watch({ onChange: handleWatch.bind(this), onError: e => { log.error(e) this.selectComponent('#errorMessage').show('服务器连接异常...', 2000, () => { router.reLaunch() }) } })
2023-06-29放在小程序自己的云存储中,是可以正常显示的。是不是官方还不支持显示共享云存储中的图片?
image组件的src设置成共享云的图片id为什么不能显示?<image src="cloud://cloud_id_xxxxx/images/peach.svg" mode="aspectFit" style="height:80px; width:80px;"> </image> 图片放共享的云存储中,不可以正常显示
2022-12-16我遇到同样的问题,手机/电脑上都一样,1/10的概率稳定复现这个问题。 errCode: -402002 realtime listener init watch fail | errMsg: login fail Error: wsclient.send timedout history states: UNINIT-(loginStart)->INIT_LOGGING_IN-(loginFail)->INIT_LOGIN_FAIL-(loginStart)->INIT_LOGGING_IN-(loginFail)->INIT_LOGIN_FAIL-(loginStart)->INIT_LOGGING_IN-(loginFail)->INIT_LOGIN_FAIL-(close)->CLOSED at _FSMListener (VM84 WAService.js:1) at VM84 WAService.js:1 at Set.forEach (<anonymous>) at ka.transition (VM84 WAService.js:1) at Io.<anonymous> (VM84 WAService.js:1) at Generator.throw (<anonymous>) at t (VM84 WAService.js:1) at l (VM84 WAService.js:1) (env: macOS,mp,1.06.2210141; lib: 2.26.2)
-402002 realtime listener init watch fail?[监听器] [监听order] 失败 Error: errCode: -402002 realtime listener init watch fail | errMsg: login fail Error: invalid state: ws connection not exists, can not send message history states: UNINIT-(loginStart)->INIT_LOGGING_IN-(loginFail)->INIT_LOGIN_FAIL-(loginStart)->INIT_LOGGING_IN-(loginFail)->INIT_LOGIN_FAIL-(loginStart)->INIT_LOGGING_IN-(loginFail)->INIT_LOGIN_FAIL-(close)->CLOSED>
2022-11-03