littlecodersh / littlecodersh/ItChat

微信登录不起了吗

Open
#960 13 comments 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.