小程序数据库监听(即时通讯)报错,有时正常有时报错的,该如何解决?
onError 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 (WASubContext.js?t=wechat&s=1675138740849&v=2.29.2:1)
at WASubContext.js?t=wechat&s=1675138740849&v=2.29.2:1
at Set.forEach (<anonymous>)
at Qi.transition (WASubContext.js?t=wechat&s=1675138740849&v=2.29.2:1)
at Wa.<anonymous> (WASubContext.js?t=wechat&s=1675138740849&v=2.29.2:1)
at Generator.throw (<anonymous>)
at t (WASubContext.js?t=wechat&s=1675138740849&v=2.29.2:1)
at l (WASubContext.js?t=wechat&s=1675138740849&v=2.29.2:1)
有大概1/10的概率会出现以上错误,然后就会一直显示这个错误[图片]