微信登陆后2小时左右,无故掉线
登陆微信后大约2个小时会,会出现微信掉线的情况?大神帮忙看看啊~
是不是咱们同步的那个post请求没有header导致的呢??求助
@spacelan
掉线之前输出什么错误了?
这个问题非常常见 { Error: timeout of 60000ms exceeded at createError (..../node_modules/axios/lib/core/createError.js:15:15) at Timeout.handleRequestTimeout [as _onTimeout] (..../node_modules/axios/lib/adapters/http.js:201:16) ...... code: 'ECONNABORTED', response: undefined, tips: '获取通讯录失败' }

在方法syncCheck和sync中输出的错误
@spacelan 求助
code: 'ECONNABORTED', response: undefined, tips: '同步失败' }
恩socket hang up就是网络问题或者是微信服务器问题,导致请求挂起了
我设置了 60s 的超时时间,防止程序因此假死 #209