Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微信登录报错,手机扫码确认后无法读取联系人信息。 #2299

Open
2 tasks done
wisevisioninc opened this issue Sep 12, 2024 · 5 comments
Open
2 tasks done

Comments

@wisevisioninc
Copy link

wisevisioninc commented Sep 12, 2024

前置确认

  • 我确认我运行的是最新版本的代码,并且安装了所需的依赖,在FAQS中也未找到类似问题。

⚠️ 搜索issues中是否已存在类似问题

  • 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue

操作系统类型?

Linux

运行的python版本是?

python 3.8

使用的chatgpt-on-wechat版本是?

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

100%复现

问题描述 😯

微信登录报错,手机扫码确认后无法读取联系人信息。
Loading the contact, this may take a little while.
[ERROR][2024-09-12 10:27:54][wechat_channel.py:138] - Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/home/jerry/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 124, in startup
itchat.auto_login(
File "/home/jerry/chatgpt-on-wechat/lib/itchat/components/register.py", line 38, in auto_login
self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback,
File "/home/jerry/chatgpt-on-wechat/lib/itchat/components/login.py", line 84, in login
self.get_contact(True)
File "/home/jerry/chatgpt-on-wechat/lib/itchat/components/contact.py", line 300, in get_contact
seq, batchMemberList = _get_contact(seq)
^^^^^^^^^^^^^^^^^
File "/home/jerry/chatgpt-on-wechat/lib/itchat/components/contact.py", line 296, in _get_contact
j = json.loads(r.content.decode('utf-8', 'replace'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jerry/miniconda3/lib/python3.8/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jerry/miniconda3/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jerry/miniconda3/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@6vision
Copy link
Collaborator

6vision commented Sep 15, 2024

换个账号微信号试试呢

@wisevisioninc
Copy link
Author

其他账号可以,就是群多的账号就报错,无法获取联系方式。

@6vision
Copy link
Collaborator

6vision commented Nov 5, 2024

其他账号可以,就是群多的账号就报错,无法获取联系方式。

暂时没复现,大概多少个群以上可以复现?

@wisevisioninc
Copy link
Author

其他账号可以,就是群多的账号就报错,无法获取联系方式。

暂时没复现,大概多少个群以上可以复现?

500-1000的群,都无法正常运行repo代码。

@6vision
Copy link
Collaborator

6vision commented Nov 7, 2024

其他账号可以,就是群多的账号就报错,无法获取联系方式。

暂时没复现,大概多少个群以上可以复现?

500-1000的群,都无法正常运行repo代码。

这是企微群还是微信群,可以500人以上?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants