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.55k stars 229 forks source link

[Bug]: 扫码登录后,没有任何反应,没有登录成功,也没有报错信息 #426

Open Mcdull0921 opened 1 month ago

Mcdull0921 commented 1 month ago

Environment

- wechaty: 0.10.7
- wechaty-puppet: 0.4.2
- wechaty-puppet-service: 
- wechaty-plugin-contrib: 
- token type: padlocal
- the version of wechaty docker container: [0.65]

Description

我扫码后未能正常登录,也没有获得什么报错信息
After scanning the code, I failed to log in normally and didn't receive any error message.

image

Minimum reproducible code

class MyBot(Wechaty):
    async def on_message(self, msg: Message):
        """
        listen for message event
        """
        from_contact: Optional[Contact] = msg.talker()
        text = msg.text()
        room: Optional[Room] = msg.room()
        if text == "ding":
            conversation: Union[Room, Contact] = from_contact if room is None else room
            await conversation.ready()
            await conversation.say("dong")
            file_box = FileBox.from_url("https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/" "u=1116676390,2305043183&fm=26&gp=0.jpg", name="ding-dong.jpg")
            await conversation.say(file_box)

os.environ["TOKEN"] = "xxxx"
os.environ["WECHATY_PUPPET_SERVICE_ENDPOINT"] = "xx.xx.xx.xx:8080"
asyncio.run(MyBot().start())