wechaty / python-wechaty

Python Wechaty is a Conversational RPA SDK for Chatbot Makers written in Python
https://wechaty.readthedocs.io/zh_CN/latest/
Apache License 2.0
1.66k stars 233 forks source link

扫码登录失败,web版 #287

Open MrTsien opened 2 years ago

MrTsien commented 2 years ago

requirements

Describe your problem

docker 运行服务端,再用python写客户端来启动机器人,之前运行好好的,今天扫码登录失败。

Reproduce your problem

simple code to reproduce your problem

Error info

# HostiePuppet - INFO - receive error info <{'gerror': '{"code":2,"details":"GError: type() {\\n        return this._type;\\n    }(登录失败。)\\n    at Function.from (file:///wechaty/node_modules/gerror/src/gerror/gerror.ts:69:17)\\n    at PuppetWeChat.emit (file:///wechaty/node_modules/wechaty-puppet/src/puppet/puppet-skeleton.ts:126:21)\\n    at Bridge.<anonymous> (file:///wechaty/node_modules/wechaty-puppet-wechat/src/puppet-wechat.ts:249:52)\\n    at Bridge.emit (node:events:390:28)\\n    at Bridge.emit (node:domain:475:12)\\n    at Bridge.onDialog (file:///wechaty/node_modules/wechaty-puppet-wechat/src/bridge.ts:184:10)\\n    at runMicrotasks (<anonymous>)\\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)","message":"type() {\\n        return this._type;\\n    }(登录失败。)","name":"GError","stack":"GError: type() {\\n        return this._type;\\n    }(登录失败。)\\n    at Function.from (file:///wechaty/node_modules/gerror/src/gerror/gerror.ts:69:17)\\n    at PuppetWeChat.emit (file:///wechaty/node_modules/wechaty-puppet/src/puppet/puppet-skeleton.ts:126:21)\\n    at Bridge.<anonymous> (file:///wechaty/node_modules/wechaty-puppet-wechat/src/puppet-wechat.ts:249:52)\\n    at Bridge.emit (node:events:390:28)\\n    at Bridge.emit (node:domain:475:12)\\n    at Bridge.onDialog (file:///wechaty/node_modules/wechaty-puppet-wechat/src/bridge.ts:184:10)\\n    at runMicrotasks (<anonymous>)\\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)"}'}>

Your experiments

please tell us your experiments and ideas about this issue. It's valuable for us to help you find the solution.

wj-Mcat commented 2 years ago

根据开发者群内沟通可知,如果基于WEB协议已经登录上的用户可以正常运行,可是如果新用户扫码的话就会失败。

很有可能是API 发生了变动。

https://github.com/wechaty/puppet-wechat/issues/192

xinxinyihao commented 2 years ago

前段时间我头条偶尔看到个新闻说,uos微信发布了全新版本,厉害得很,当时我就想,这个机器人怕是要挂了。又用了几天,还能用,我以为没事了,谁知道我还是高兴是我太早了。

bigbrother666sh commented 2 years ago

新手第一天,哆哩哆嗦的看了一天文档,好容易启动doker……还以为自己学艺不精

wj-Mcat commented 2 years ago

别慌,说不定过几天web协议就可以用了呢?

loveQt commented 2 years ago

前段时间我头条偶尔看到个新闻说,uos微信发布了全新版本,厉害得很,当时我就想,这个机器人怕是要挂了。又用了几天,还能用,我以为没事了,谁知道我还是高兴是我太早了。

应该就是这个原因。UOS和银河麒麟的微信没有消息存储,没有截图,很多单位年底前换了电脑以后吐槽的厉害,催动了微信客户端的更新。UOS-web的放松本来也是妥协过渡的产物,客户端普及能用了,web复活的希望可能就不大了。

JoffreyN commented 2 years ago

还有救吗?对于不能登录web版的微信

HangJau commented 2 years ago

刚准备用, Uos 还能用么,本来打算通过termux + frida hook 安卓 来操作微信 发现难度太大了。还需要root 反编译等。

huan commented 2 years ago

@HangJau Hi, if you are familiar with Frida, you might be interested in the Wechaty Puppet XP project, which is a working puppet building on top of Friday and Windows.

Yuri2 commented 2 years ago

@HangJau Hi, if you are familiar with Frida, you might be interested in the Wechaty Puppet XP project, which is a working puppet building on top of Friday and Windows.

想问下有python版的吗?

wj-Mcat commented 2 years ago

@Yuri2 there is no gap between python-wechaty and puppet-xp, you can refer to https://github.com/wechaty/python-wechaty/issues/295#issuecomment-1017036009 to creat your bot.