python-wechaty
python-wechaty copied to clipboard
[Bug]: 登录失败
Environment
- token type: padlocal
- the version of wechaty docker container: [0.65]
wechaty 0.8.67
wechaty-grpc 0.20.19
wechaty-puppet 0.4.21
wechaty-puppet-service 0.8.10
Description
2022-11-17 10:58:16,805 - Wechaty - ERROR - internal error <>
2022-11-17 10:58:26,250 - PuppetService - INFO - receive error info <{'data': 'type() {\n return this._type;\n }(登录失败。)'}>
2022-11-17 10:58:26,250 - Wechaty - INFO - receive <error> event <EventErrorPayload(data='type() {\n return this._type;\n }(登录失败。)')>
2022-11-17 10:58:26,250 - Wechaty - ERROR - internal error <Uncaught, unspecified 'error' event: EventErrorPayload(data='type() {\n return this._type;\n }(登录失败。)')>
Minimum reproducible code
from wechaty import Wechaty
import os
import asyncio
async def main():
bot = Wechaty()
bot.on('scan', lambda status, qrcode, data: print('Scan QR Code to login: {}\nhttps://wechaty.js.org/qrcode/{}'.format(status, qrcode)))
bot.on('login', lambda user: print('User {} logged in'.format(user)))
bot.on('message', lambda message: print('Message: {}'.format(message)))
await bot.start()
asyncio.run(main())
同样的问题,不过我是web协议
+1
这是什么原因呀,困扰我好长时间了。。