[Bug]: 扫码登录后,没有任何反应,没有登录成功,也没有报错信息
Mcdull0921 opened this issue · 0 comments
Mcdull0921 commented
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.
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())