GithubHelp home page GithubHelp logo

Comments (16)

qighliu29 avatar qighliu29 commented on May 14, 2024 1

又试了一下 没有再出现发一个表情卡死的现象, 也不会出现很多webpush.wx2.qq.com 0 2了
但连续发多个表情给bot, 还是会卡住, 应该是web微信的频率限制
因此还是建议client.Do那里加上超时

from wechat-go.

songtianyi avatar songtianyi commented on May 14, 2024

@qighliu29
提供下错误日志,复现代码和表情文件

from wechat-go.

qighliu29 avatar qighliu29 commented on May 14, 2024

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.

qighliu29 avatar qighliu29 commented on May 14, 2024

试了gifer插件, 一个账号可以, 一个账号在
SendEmotionFromBytes的WebWxUploadMedia返回BaseResponse.Ret=1100
是被判定为机器人了吗?
有什么规避方法?

from wechat-go.

songtianyi avatar songtianyi commented on May 14, 2024

@qighliu29
是在非Windows下编译的还是windows下?

from wechat-go.

qighliu29 avatar qighliu29 commented on May 14, 2024

上面的是在windows下编译的
手头没windows机器了, 在mac上分别编译TERMINAL_MODE和WEB_MODE, 都可以复现hang up
webpush.wx2.qq.com 0 2 消息多了很多
之前忘了说, 都是自己发给自己

from wechat-go.

songtianyi avatar songtianyi commented on May 14, 2024

@qighliu29
0 2 代表syncheck检测到了消息,文件大的时候会比较多,晚上把超时加上。

from wechat-go.

qighliu29 avatar qighliu29 commented on May 14, 2024

webwxsync加timeout没有问题
但是web微信好像总有一个synccheck在pending, 不知道是什么逻辑

from wechat-go.

songtianyi avatar songtianyi commented on May 14, 2024

@qighliu29
如果没有消息会过很久才回。你说的hang住应该是在syncheck里吧?

from wechat-go.

qighliu29 avatar qighliu29 commented on May 14, 2024

hang up先是在webwxsync里
webwxsync加了超时之后发现syncheck有时候也会hang住, 这种不是正常的pending, 再发文本消息/退出也不会出来
可以先只处理webwxsync, 剩下的不管

from wechat-go.

qighliu29 avatar qighliu29 commented on May 14, 2024

hang up先是在webwxsync里
webwxsync加了超时之后发现syncheck有时候也会hang住, 这种不是正常的pending, 再发文本消息/退出也不会出来
可以先只处理webwxsync, 剩下的不管

或者给syncheck设置稍大的timeout, 我自己试了试没发现什么副作用 (除了会很多timeout log)

from wechat-go.

jackXJ avatar jackXJ commented on May 14, 2024

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.

songtianyi avatar songtianyi commented on May 14, 2024

@jackXJ
过了多久扫描的?408表示过期了,可以等它刷新。
btw 新问题可以新开issue。

from wechat-go.

songtianyi avatar songtianyi commented on May 14, 2024

@qighliu29
你可以提交一个pr

from wechat-go.

qighliu29 avatar qighliu29 commented on May 14, 2024

这个算完结了吧

from wechat-go.

songtianyi avatar songtianyi commented on May 14, 2024

@qighliu29
嗯,🙏

from wechat-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.