python-wechaty icon indicating copy to clipboard operation
python-wechaty copied to clipboard

[Bug]: 登录失败

Open XiepengLi opened this issue 3 years ago • 3 comments

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())

XiepengLi avatar Nov 17 '22 03:11 XiepengLi

同样的问题,不过我是web协议

HarryWu99 avatar Feb 02 '23 03:02 HarryWu99

+1

dongrixinyu avatar Feb 18 '23 09:02 dongrixinyu

这是什么原因呀,困扰我好长时间了。。

Fjia-f avatar Jul 21 '23 08:07 Fjia-f