9
FAQs
Jianglang edited this page 2023-04-24 02:15:12 +08:00
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1.OpenAI官网注册提示 Not avaliable

一般是vpn未生效注意地区要选择韩国、美国等如果切换几个地区都不行就试试清除浏览器缓存或是用无痕页面打开。账号注册的参考该博客

2.项目启动报错SSL连接失败

During handling of the above exception, another exception occurred:
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='webpush.wx.qq.com', port=443): Max retries exceeded with url:
you can't get access to internet or wechat domain, so exit.

可能有两个原因:

  1. 网络问题,用浏览器打开网页微信 看看能否能访问检查下电脑是否挂了vpn如果是的要关掉后再登录。
  2. Python版本过高 (3.10 或 3.11),建议使用 3.7.1 ~ 3.9 版本的Python经过我们的测试 3.8 版本的Python兼容性最佳。

3.登录报错 IndexError: list index out of range

login.py", line 198, in process_login_info
skey = re.findall('(.*?)', r.text, re.S)[0]
IndexError: list index out of range

一般原因是微信没有实名认证,前往支付板块进行实名认证后再登录。 同时可以检查下账号是否被冻结,如果是则需要解冻。

4.登录成功但无法触发自动回复

一般原因是没有收到触发自动回复的文本内容检查下config.json中的配置个人聊天需发送以single_chat_prefix配置为开头的内容 (自身发送也可触发);群组聊天需发送以 group_chat_prefix配置中 为开头的内容,或被 @ 也会直接触发。 同时群名称需要在 group_name_white_list 中配置。

5.ModuleNotFoundError: No module named '***'

执行pip3 install -r requirements.txt,确认依赖均已安装。 执行pip3 install -r requirements-optional.txt,确认可选依赖均已安装。

6.AttributeError: module 'openai' has no attribute '***'

执行pip3 install -r requirements.txt,确认依赖均已满足版本要求。

7.You exceeded your current quota, please check your plan and billing details.

这个问题是openai免费额度用完了或者注册的时候就没送免费额度在这里查看https://platform.openai.com/account/usage