littlecodersh / littlecodersh/ItChat
微信登录不起了吗
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 26.5k
- Forks
- 5.6k
- PR merge metrics
- No merged PRs in 30d
Description
```
Traceback (most recent call last):
File "f:\wps同步\python练习\微信机器人\321.py", line 197, in
itchat.auto_login(hotReload=True,loginCallback=login, exitCallback=out)
File "F:\anaconda\lib\site-packages\itchat\components\register.py", line 31, in auto_login
self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback,
File "F:\anaconda\lib\site-packages\itchat\components\login.py", line 55, in login
status = self.check_login()
File "F:\anaconda\lib\site-packages\itchat\components\login.py", line 141, in check_login
if process_login_info(self, r.text):
File "F:\anaconda\lib\site-packages\itchat\components\login.py", line 183, in process_login_info
core.loginInfo['wxsid'] = core.loginInfo['BaseRequest']['Sid'] = cookies["wxsid"]
KeyError: 'wxsid'
```
> 我重启了一下电脑,然后就登录不起了,换电脑了也不行
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 reproducing the reported login flow and read itchat/components/login.py, especially process_login_info and the wxsid lookup shown in the traceback. Compare the login response and cookies with the expected flow; done means the reported WeChat login completes without the KeyError. The issue is old and has had no recent response, so check whether the behavior is still reproducible before proceeding.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100