Comments (16)
又试了一下 没有再出现发一个表情卡死的现象, 也不会出现很多webpush.wx2.qq.com 0 2了
但连续发多个表情给bot, 还是会卡住, 应该是web微信的频率限制
因此还是建议client.Do那里加上超时
from wechat-go.
@qighliu29
提供下错误日志,复现代码和表情文件
from wechat-go.
2017/06/02 14:18:21 [I] entering synccheck loop
2017/06/02 14:18:21 [I] webpush.wx2.qq.com 0 2
2017/06/02 14:18:21 [E] handlers for key [51] not registered
2017/06/02 14:18:21 [E] handlers for key [51] not registered
2017/06/02 14:18:27 [I] webpush.wx2.qq.com 0 2
2017/06/02 14:18:27 [E] handlers for key [47] not registered
2017/06/02 14:18:27 [I] webpush.wx2.qq.com 0 2
2017/06/02 14:18:27 [I] webpush.wx2.qq.com 0 2
2017/06/02 14:18:28 [I] webpush.wx2.qq.com 0 2
2017/06/02 14:18:28 [I] webpush.wx2.qq.com 0 2
2017/06/02 14:18:28 [I] webpush.wx2.qq.com 0 2
2017/06/02 14:18:28 [I] webpush.wx2.qq.com 0 2
2017/06/02 14:18:28 [I] webpush.wx2.qq.com 0 2
2017/06/02 14:18:29 [I] webpush.wx2.qq.com 0 2
2017/06/02 14:18:29 [I] webpush.wx2.qq.com 0 2
2017/06/02 14:18:29 [I] webpush.wx2.qq.com 0 2
2017/06/02 14:18:29 [I] webpush.wx2.qq.com 0 2
2017/06/02 14:18:29 [I] webpush.wx2.qq.com 0 2
2017/06/02 14:18:30 [I] webpush.wx2.qq.com 0 2
代码就用的travis/windows那个
日志到这里就hang住了, 有时候"webpush.wx2.qq.com 0 2"更多才hang住, 我是 win x64
在WebWxSync和SyncCheck里加log发现resp, err := client.Do(req)
没有出来
表情 我尝试自定义的都能触发, hang up之前都是"webpush.wx2.qq.com 0 2", 商店的没试
from wechat-go.
试了gifer插件, 一个账号可以, 一个账号在
SendEmotionFromBytes的WebWxUploadMedia返回BaseResponse.Ret=1100
是被判定为机器人了吗?
有什么规避方法?
from wechat-go.
@qighliu29
是在非Windows下编译的还是windows下?
from wechat-go.
上面的是在windows下编译的
手头没windows机器了, 在mac上分别编译TERMINAL_MODE和WEB_MODE, 都可以复现hang up
webpush.wx2.qq.com 0 2 消息多了很多
之前忘了说, 都是自己发给自己
from wechat-go.
@qighliu29
0 2 代表syncheck检测到了消息,文件大的时候会比较多,晚上把超时加上。
from wechat-go.
webwxsync加timeout没有问题
但是web微信好像总有一个synccheck在pending, 不知道是什么逻辑
from wechat-go.
@qighliu29
如果没有消息会过很久才回。你说的hang住应该是在syncheck里吧?
from wechat-go.
hang up先是在webwxsync里
webwxsync加了超时之后发现syncheck有时候也会hang住, 这种不是正常的pending, 再发文本消息/退出也不会出来
可以先只处理webwxsync, 剩下的不管
from wechat-go.
hang up先是在webwxsync里
webwxsync加了超时之后发现syncheck有时候也会hang住, 这种不是正常的pending, 再发文本消息/退出也不会出来
可以先只处理webwxsync, 剩下的不管
或者给syncheck设置稍大的timeout, 我自己试了试没发现什么副作用 (除了会很多timeout log)
from wechat-go.
Hi
在mac上跑了下,出现二维码,但是手机扫码没反应。
2017/06/06 00:34:27 [E] session exit, invalid response, window.code=408;
2017/06/06 00:34:27 [I] trying re-login with cache
2017/06/06 00:34:27 [E] re-login error, Post /webwxinit?pass_ticket=&r=1496734467&skey=: unsupported protocol scheme ""
2017/06/06 00:34:30 [I] trying re-login with cache
2017/06/06 00:34:30 [E] re-login error, Post /webwxinit?pass_ticket=&r=1496734470&skey=: unsupported protocol scheme ""
2017/06/06 00:34:33 [I] trying re-login with cache
2017/06/06 00:34:33 [E] re-login error, Post /webwxinit?pass_ticket=&r=1496734473&skey=: unsupported protocol scheme ""
这是日志。
from wechat-go.
@jackXJ
过了多久扫描的?408表示过期了,可以等它刷新。
btw 新问题可以新开issue。
from wechat-go.
@qighliu29
你可以提交一个pr
from wechat-go.
这个算完结了吧
from wechat-go.
@qighliu29
嗯,
from wechat-go.
Related Issues (20)
- 请问支持添加好友吗? HOT 10
- 请问怎么获取群的成员列表 HOT 1
- 求助,如果用于微信自动回复 HOT 11
- no handlers for key HOT 1
- 接受好友请求后似乎就报错无法使用了
- 第三方平台支持 HOT 1
- 微信收款信息是乱码,需要解密吧 HOT 1
- 还更新吗? HOT 3
- 频繁掉线,自动重新登陆失败 HOT 3
- 请问怎么判断联系人是否是公众号呢? HOT 1
- 弱弱的问一下appid和发送消息的文档在哪里可以查看申请。。 HOT 1
- 如何主动给好友发消息 HOT 2
- go mod的问题
- 微控BUG反馈帖 HOT 3
- 微信网页版登陆接口增加了环境监测实在cookie中设置的
- 不好意思,想问下如何发送本地文件夹下图片 HOT 2
- 如何邀请自己好友进群? HOT 2
- 能否弄一些管理工具函数
- 还有维护吗 HOT 5
- 能获取小程序登陆的二维码码 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wechat-go.