Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mcdull0921 opened this issue May 30, 2024 · 1 comment

Comments

@Mcdull0921
Copy link

Mcdull0921 commented May 30, 2024

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())
@VoidR
Copy link

VoidR commented Jan 27, 2025

请问是否解决了呢,我也遇到了一样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants