收藏
回答

Watcher一直报socket handshake失败的错误?

之前Watcher一直都是正常使用的,今天开始一直报这个错误, 这个错误现每次都会出。

VM16 asdebug.js:1 WebSocket connection to 'wss://tcb-ws.tencentcloudapi.com/' failed: Error during WebSocket handshake: Unexpected response code: 502
createSocketTask @ VM16 asdebug.js:1
invoke @ VM16 asdebug.js:1
r @ VM16 asdebug.js:1
invoke @ VM1255 WAService.js:2
o @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
p @ VM1255 WAService.js:2
t @ VM1255 WAService.js:2
n @ VM1255 WAService.js:2
connectSocket @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
n @ VM1255 WAService.js:2
index.js? [sm]:399 the watch closed because of error Error: errCode: -402011 realtime listener unexpected fatal error | errMsg: [object Object] 
history states: UNINIT-(close)->CLOSED
    at new g (VM1255 WAService.js:2)
    at _i.closeWithError (VM1255 WAService.js:2)
    at _parentFSMListener (VM1255 WAService.js:2)
    at VM1255 WAService.js:2
    at Set.forEach (<anonymous>)
    at Do.transition (VM1255 WAService.js:2)
    at Function.<anonymous> (VM1255 WAService.js:2)
    at C (VM1255 WAService.js:2)
    at VM1255 WAService.js:2
    at VM1255 WAService.js:2
onError @ index.js? [sm]:399
(anonymous) @ VM1255 WAService.js:2
C @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
c @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
C @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
_i.closeWithError @ VM1255 WAService.js:2
_parentFSMListener @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
Do.transition @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
C @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
value @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
c @ VM16 asdebug.js:1
(anonymous) @ VM16 asdebug.js:1
i.emit @ VM16 asdebug.js:1
S.onclose @ VM16 asdebug.js:1
VM1255 WAService.js:2 Error: MiniProgramError
{"errMsg":"closeSocket:fail task not found"}
    at Object.errorReport (VM1255 WAService.js:2)
    at Function.thirdErrorReport (VM1255 WAService.js:2)
    at Object.<anonymous> (VM1255 WAService.js:2)
    at I (VM1255 WAService.js:2)
    at Object.o [as cb] (VM1255 WAService.js:2)
    at VM1255 WAService.js:2
    at Array.forEach (<anonymous>)
    at e.value (VM1255 WAService.js:2)
    at o (VM1255 WAService.js:2)
    at VM1255 WAService.js:2
errorReport @ VM1255 WAService.js:2
thirdErrorReport @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
I @ VM1255 WAService.js:2
o @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
value @ VM1255 WAService.js:2
o @ VM1255 WAService.js:2
(anonymous) @ VM1255 WAService.js:2
VM1255 WAService.js:2 TypeError: n is not a function
    at Oi.<anonymous> (VM1255 WAService.js:2)
    at VM1255 WAService.js:2
    at Object.next (VM1255 WAService.js:2)
    at n (VM1255 WAService.js:2)
回答关注问题邀请回答
收藏

2 个回答

  • luyuchao
    luyuchao
    2021-04-14

    调试工具没有这个问题,真机一直报-402011 realtime listener unexpected fatal error,急急急

    2021-04-14
    有用
    回复 2
    • luyuchao
      luyuchao
      2021-04-14
      升级了微信8.0.2测试版出现这个问题
      2021-04-14
      回复
    • luyuchao
      luyuchao
      2021-04-14回复luyuchao
      已验证是升级微信测试版的原因,请记录
      2021-04-14
      回复
  • 冯晓东-星球
    冯晓东-星球
    2021-02-07

    我也是同样的问题 , 腾讯云 不稳定吗 ?

    2021-02-07
    有用
    回复 1
    • 疯狂的小辣椒
      疯狂的小辣椒
      2021-02-07
      你好,已经处理了,麻烦重试下看看
      2021-02-07
      回复
登录 后发表内容
问题标签