at socketTask.onopen callback function
发布于 6 年前 作者 mingyao 6145 次浏览 来自 问答

在小程序后台运维中心看到报了这个错误,无从查起,我这个page/index/index页面没有用到onReady方法,而且整个小程序都没有用到websocket.

找不到问题,求知道的告知下呗~

基础库设置的是:1.9.96

微信客户端版本: 6.7.3

null is not an object (evaluating 't.method');at page/index/index onReady function;at socketTask.onopen callback function
3 回复
Cannot read property 'method' of null;at socketTask.onopen callback function TypeError: Cannot read property 'method' of null at Object._buildWebsocketFrame (<anonymous>:1083:19941) at Object.internalSend (<anonymous>:1083:20579) at Function.<anonymous> (<anonymous>:1083:21378) at Bt.<anonymous> (<anonymous>:1:101865) at Bt.emit (<anonymous>:1:314089) at <anonymous>:1:483279 at <anonymous>:1:271478 at Object.S (<anonymous>:1:1761) at Object.ret.subscribeHandler (<anonymous>:26:28) at <anonymous>:1:67

同样的问题 就是开发里看到一堆这个贼难受。。

看下您的 onopen 方法是否有处理呢?

而且这个页面代码没有更改过。上周发了一个版本,调整了下基础库到1.9.96.会是这个原因吗?

回到顶部