littlecodersh / littlecodersh/ItChat
itchat.check_login()返回400
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 26.5k
- Forks
- 5.6k
- PR merge metrics
- No merged PRs in 30d
Description
在提交前,请确保您已经检查了以下内容!
- [ ] 您可以在浏览器中登陆微信账号,但不能使用`itchat`登陆
- [ ] 我已经阅读并按[文档][document] 中的指引进行了操作
- [x] 您的问题没有在[issues][issues]报告,否则请在原有issue下报告
- [x] 本问题确实关于`itchat`, 而不是其他项目.
- [ ] 如果你的问题关于稳定性,建议尝试对网络稳定性要求极低的[itchatmp][itchatmp]项目
请使用`itchat.run(debug=True)`运行,并将输出粘贴在下面:
```
[在这里粘贴完整日志]
```
您的itchat版本为:`[在这里填写版本号]`。(可通过`python -c "import itchat;print(itchat.__version__)"`获取)
其他的内容或者问题更详细的描述都可以添加在下面:
在调用`itchat.auto_login`的时候,如果设置`hotReload=True`,在不用扫二维码或者在手机上点确认登录的情况下,自动登录后,可以确认是成功登录,调用`itchat.check_login()`会返回`400`,因为`uuid`是None。
[document]: http://itchat.readthedocs.io/zh/latest/
[issues]: https://github.com/littlecodersh/itchat/issues
[itchatmp]: https://github.com/littlecodersh/itchatmp
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing itchat.auto_login with hotReload=True into itchat.check_login, focusing on how uuid is handled after automatic login. Reproduce the reported successful-login case and verify that check_login no longer returns 400 when uuid is None.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100