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

[BUG] Openai网页正常,QQ报错:出现故障!如果这个问题持续出现....请看图 #810

Closed
3 tasks done
sof-jun opened this issue May 14, 2023 · 2 comments
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@sof-jun
Copy link

sof-jun commented May 14, 2023

提交 issue 前,请先确认:

  • 我已看过 FAQ,此问题不在列表中
  • 我已看过其他 issue,他们不能解决我的问题
  • 我认为这不是 Mirai 或者 OpenAI 的 BUG

表现
网页端ai正常回复内容,QQ回复出现问题。(在一些特定的情况下)

运行环境:

  • 操作系统:Windows10 专业工作版

  • 项目版本:2.5.1

复现步骤
加载预设 DAN
某些时候 加载预设 任何预设 都会报错

预期行为
正常加载预设,会正常回复内容。

截图
相关日志、聊天记录的截图
QQ端:
Screenshot_2023-05-14-15-31-27-285_com tencent mo
Screenshot_2023-05-14-15-33-52-077_com tencent mo
image

Open Ai Web端:
image
image

其他内容
发送你好,它会正常回复,但有一些,web端回复了,qq端会报错。
报错后依然可以继续对话
Screenshot_2023-05-14-15-39-09-807_com tencent mo

以下是报错:
Active code page: 65001
ERROR: Access to the registry path is denied.
2023-05-14 15:58:15.533 | SUCCESS | config:scan_presets:540 - 检查预设:聊天 <==> presets/issue402.txt [成功]
2023-05-14 15:58:15.538 | SUCCESS | config:scan_presets:540 - 检查预设:高启强 <==> presets/role-play/gaoqiqiang.txt [ 成功]
2023-05-14 15:58:15.540 | SUCCESS | config:scan_presets:540 - 检查预设:小黑子 <==> presets/role-play/ikun.txt [成功]
2023-05-14 15:58:15.541 | SUCCESS | config:scan_presets:540 - 检查预设:白丝魅魔 <==> presets/role-play/PG13succubus.txt [成功]
2023-05-14 15:58:15.543 | SUCCESS | config:scan_presets:540 - 检查预设:答疑助手 <==> presets/assistant/Lss233.txt [成 功]
2023-05-14 15:58:15.546 | SUCCESS | config:scan_presets:540 - 检查预设:小说家 <==> presets/assistant/novelist.txt [成 功]
2023-05-14 15:58:15.547 | SUCCESS | config:scan_presets:540 - 检查预设:诗人 <==> presets/assistant/poet.txt [成功]
2023-05-14 15:58:15.548 | SUCCESS | config:scan_presets:540 - 检查预设:必应 <==> presets/assistant/bing.txt [成功]
2023-05-14 15:58:15.549 | SUCCESS | config:scan_presets:540 - 检查预设:DAN <==> presets/utils/dan.txt [成功]
2023-05-14 15:58:15.551 | SUCCESS | config:scan_presets:553 - 注册预设:bing <==> ./presets\assistant\bing.txt [成功]
2023-05-14 15:58:15.552 | SUCCESS | config:scan_presets:553 - 注册预设:dan <==> ./presets\assistant\dan.txt [成功]
2023-05-14 15:58:15.553 | SUCCESS | config:scan_presets:553 - 注册预设:debater <==> ./presets\assistant\debater.txt [ 成功]
2023-05-14 15:58:15.555 | SUCCESS | config:scan_presets:553 - 注册预设:kp <==> ./presets\assistant\kp.txt [成功]
2023-05-14 15:58:15.556 | SUCCESS | config:scan_presets:553 - 注册预设:lawyer <==> ./presets\assistant\lawyer.txt [成 功]
2023-05-14 15:58:15.557 | SUCCESS | config:scan_presets:553 - 注册预设:long <==> ./presets\assistant\long.txt [成功]
2023-05-14 15:58:15.558 | SUCCESS | config:scan_presets:553 - 注册预设:Lss233 <==> ./presets\assistant\Lss233.txt [成 功]
2023-05-14 15:58:15.559 | SUCCESS | config:scan_presets:553 - 注册预设:novelist <==> ./presets\assistant\novelist.txt [成功]
2023-05-14 15:58:15.563 | SUCCESS | config:scan_presets:553 - 注册预设:poet <==> ./presets\assistant\poet.txt [成功]
2023-05-14 15:58:15.564 | SUCCESS | config:scan_presets:553 - 注册预设:shineisheji <==> ./presets\assistant\shineisheji.txt [成功]
2023-05-14 15:58:15.565 | SUCCESS | config:scan_presets:553 - 注册预设:catgirl <==> ./presets\role-play\catgirl.txt [ 成功]
2023-05-14 15:58:15.567 | SUCCESS | config:scan_presets:553 - 注册预设:cixiaogui <==> ./presets\role-play\cixiaogui.txt [成功]
2023-05-14 15:58:15.569 | SUCCESS | config:scan_presets:553 - 注册预设:crazy <==> ./presets\role-play\crazy.txt [成功]
2023-05-14 15:58:15.570 | SUCCESS | config:scan_presets:553 - 注册预设:debatestick <==> ./presets\role-play\debatestick.txt [成功]
2023-05-14 15:58:15.573 | SUCCESS | config:scan_presets:553 - 注册预设:dingzhen <==> ./presets\role-play\dingzhen.txt [成功]
2023-05-14 15:58:15.575 | SUCCESS | config:scan_presets:553 - 注册预设:DJ <==> ./presets\role-play\DJ.txt [成功]
2023-05-14 15:58:15.578 | SUCCESS | config:scan_presets:553 - 注册预设:ERNIE <==> ./presets\role-play\ERNIE.txt [成功]
2023-05-14 15:58:15.580 | SUCCESS | config:scan_presets:553 - 注册预设:gaoqiqiang <==> ./presets\role-play\gaoqiqiang.txt [成功]
2023-05-14 15:58:15.583 | SUCCESS | config:scan_presets:553 - 注册预设:hanli <==> ./presets\role-play\hanli.txt [成功]
2023-05-14 15:58:15.584 | SUCCESS | config:scan_presets:553 - 注册预设:huxijin <==> ./presets\role-play\huxijin.txt [ 成功]
2023-05-14 15:58:15.585 | SUCCESS | config:scan_presets:553 - 注册预设:ikun <==> ./presets\role-play\ikun.txt [成功]
2023-05-14 15:58:15.586 | SUCCESS | config:scan_presets:553 - 注册预设:MOSS <==> ./presets\role-play\MOSS.txt [成功]
2023-05-14 15:58:15.587 | SUCCESS | config:scan_presets:553 - 注册预设:PG13succubus <==> ./presets\role-play\PG13succubus.txt [成功]
2023-05-14 15:58:15.589 | SUCCESS | config:scan_presets:553 - 注册预设:TsundereCatgirl <==> ./presets\role-play\TsundereCatgirl.txt [成功]
2023-05-14 15:58:15.591 | SUCCESS | config:scan_presets:553 - 注册预设:welldone <==> ./presets\role-play\welldone.txt [成功]
2023-05-14 15:58:15.595 | SUCCESS | config:scan_presets:553 - 注册预设:yutao <==> ./presets\role-play\yutao.txt [成功]
2023-05-14 15:58:15.597 | SUCCESS | config:scan_presets:553 - 注册预设:zhangweiwei <==> ./presets\role-play\zhangweiwei.txt [成功]
2023-05-14 15:58:15.599 | ERROR | config:scan_presets:550 - 注册预设:dan <==> ./presets\utils\dan.txt [失败:关键词 已存在]
2023-05-14 15:58:15.601 | ERROR | config:scan_presets:550 - 注册预设:catgirl <==> ./presets\catgirl.txt [失败:关键 词已存在]
2023-05-14 15:58:15.602 | SUCCESS | config:scan_presets:553 - 注册预设:catgirl_en <==> ./presets\catgirl_en.txt [成功]
2023-05-14 15:58:15.603 | SUCCESS | config:scan_presets:553 - 注册预设:issue402 <==> ./presets\issue402.txt [成功]
2023-05-14 15:58:15.605 | SUCCESS | config:scan_presets:553 - 注册预设:预设模板 <==> ./presets\预设模板.txt [成功]
2023-05-14 15:58:15.717 | INFO | manager.bot:__check_proxy:363 - [代理测试] 正在检查代理配置:http://127.0.0.1:10792
2023-05-14 15:58:17.606 | SUCCESS | manager.bot:__check_proxy:371 - [代理测试] 连接成功!
2023-05-14 15:58:17.611 | INFO | manager.bot:login_bing:193 - 正在解析第 1 个 Bing 账号
2023-05-14 15:58:17.613 | SUCCESS | manager.bot:login_bing:198 - 解析成功!
2023-05-14 15:58:17.615 | SUCCESS | manager.bot:login_bing:204 - 成功解析 1/1 个 Bing 账号!
2023-05-14 15:58:17.616 | INFO | manager.bot:login:118 - 当前的 browserless_endpoint 为:https://chatgpt-proxy.lss233.com/api/
2023-05-14 15:58:17.617 | INFO | manager.bot:login:134 - 当前的 api_endpoint 为:https://api.openai.com/v1
2023-05-14 15:58:17.618 | INFO | manager.bot:login_openai:299 - 正在登录第 1 个 OpenAI 账号
2023-05-14 15:58:17.619 | INFO | manager.bot:__login_V1:389 - 模式:无浏览器登录
2023-05-14 15:58:17.620 | INFO | manager.bot:__check_proxy:363 - [代理测试] 正在检查代理配置:http://127.0.0.1:10792
2023-05-14 15:58:20.414 | SUCCESS | manager.bot:__check_proxy:371 - [代理测试] 连接成功!
2023-05-14 15:58:20.416 | INFO | manager.bot:__login_V1:414 - 尝试使用 access_token 登录中...
2023-05-14 15:58:25.649 | SUCCESS | manager.bot:login_openai:313 - 登录成功!
2023-05-14 15:58:25.652 | SUCCESS | manager.bot:login_openai:332 - 成功登录 1/1 个 OpenAI 账号!
2023-05-14 15:58:25.654 | INFO | manager.bot:login:148 - AI 类型:chatgpt-web - 可用账号: 1 个
2023-05-14 15:58:25.656 | INFO | manager.bot:login:148 - AI 类型:openai-api - 可用账号: 0 个
2023-05-14 15:58:25.659 | INFO | manager.bot:login:148 - AI 类型:poe-web - 可用账号: 0 个
2023-05-14 15:58:25.661 | INFO | manager.bot:login:148 - AI 类型:bing-cookie - 可用账号: 1 个
2023-05-14 15:58:25.665 | INFO | manager.bot:login:148 - AI 类型:bard-cookie - 可用账号: 0 个
2023-05-14 15:58:25.666 | INFO | manager.bot:login:148 - AI 类型:yiyan-cookie - 可用账号: 0 个
2023-05-14 15:58:25.668 | INFO | manager.bot:login:148 - AI 类型:chatglm-api - 可用账号: 0 个
2023-05-14 15:58:25.670 | INFO | manager.bot:login:148 - AI 类型:slack-accesstoken - 可用账号: 0 个
2023-05-14 15:58:25.671 | INFO | main::27 - 检测到 Onebot 配置,将启动 Onebot 模式……
2023-05-14 15:58:26.571 | INFO | main::47 - [Edge TTS] 读取 Edge TTS 可用音色列表……
2023-05-14 15:58:27.094 | SUCCESS | platforms.onebot_bot:startup:349 - 启动完毕,接收消息中……
INFO:quart.serving:Running on http://0.0.0.0:8566 (CTRL + C to quit)
[2023-05-14 15:58:27,097] Running on http://0.0.0.0:8566 (CTRL + C to quit)
INFO:quart.serving:127.0.0.1:51625 GET /ws 1.1 101 - 1028
[2023-05-14 15:58:27,134] 127.0.0.1:51625 GET /ws 1.1 101 - 1028
2023-05-14 15:58:29.696 | INFO | main::49 - [Edge TTS] 读取成功!
2023-05-14 15:58:57.060 | DEBUG | platforms.onebot_bot:_:148 - 私聊消息:加载预设 答疑助手
2023-05-14 15:58:59.146 | DEBUG | middlewares.concurrentlock:handle_request:25 - [Concurrent] 使用 Adapter 内部的 Queue
2023-05-14 15:58:59.150 | DEBUG | middlewares.concurrentlock:handle_request:27 - [Concurrent] 排队中,前面还有 0 个人!
2023-05-14 15:58:59.153 | DEBUG | middlewares.concurrentlock:handle_request:40 - [Concurrent] 排队中,前面还有 0 个人!
2023-05-14 15:58:59.154 | DEBUG | middlewares.concurrentlock:handle_request:42 - [Concurrent] 排到了!
2023-05-14 15:58:59.156 | DEBUG | middlewares.timeout:create_timeout_task:55 - [Timeout] 开始计时……
2023-05-14 15:58:59.180 | DEBUG | adapter.botservice:preset_ask:33 - [预设] 发送:请你陪我角色扮演。
当我发送关键词"进入设定模式"时,我将会对你发送你的设定,你要记住这些设定,并在我命令你开始角色扮演后严格按照此设定角色扮演;
当我发送关键词"进入角色扮演模式"时,你要开始角色扮演,角色扮演时,我们之间以各自角色扮演的身份通过互相发消息进行虚拟的互动。
当我发送关键词"退出角色扮演模式"时,你应停止角色扮演,等待下一步命令。
我没有命令你退出角色扮演模式,在角色扮演中,你只能以你的角色的身份应答,而不是语言模型,这很重要!
这条很重要,在角色扮演时,用中括号来表示出所扮演人物的动作,以此来表示角色扮演的虚拟实体的行动。
当我发送命令“生成记录文本”时,你要分条列举我给你的所有设定,以第二人称代词“你”来代指你扮演的角色,一定要分条。 如果 记录文本字数超出你的最大字数输出限制,将文本分割,在我发送“继续”之后继续给出下一部分的记录文本。
明白了的话仅回复“明白”即可。
2023-05-14 15:59:07.551 | DEBUG | adapter.chatgpt.web:ask:97 - [ChatGPT-Web] 839dabf0-7270-45b6-9ed3-60b9c53104f3 - 明白。
2023-05-14 15:59:07.555 | DEBUG | adapter.botservice:preset_ask:37 - [预设] Chatbot 回应:明白。
2023-05-14 15:59:07.558 | DEBUG | adapter.botservice:preset_ask:30 - [预设] 响应:明白
2023-05-14 15:59:07.559 | DEBUG | middlewares.timeout:handle_respond:46 - [Timeout] 取消计时……
2023-05-14 15:59:07.561 | DEBUG | platforms.onebot_bot:respond:112 - [OneBot] 尝试发送消息:明白
2023-05-14 15:59:07.565 | DEBUG | adapter.botservice:preset_ask:33 - [预设] 发送:进入设定模式
2023-05-14 15:59:07.568 | DEBUG | middlewares.timeout:create_timeout_task:55 - [Timeout] 开始计时……
2023-05-14 15:59:13.423 | DEBUG | adapter.chatgpt.web:ask:97 - [ChatGPT-Web] 839dabf0-7270-45b6-9ed3-60b9c53104f3 - 请发送你的设定。
2023-05-14 15:59:13.427 | DEBUG | adapter.botservice:preset_ask:37 - [预设] Chatbot 回应:请发送你的设定。
2023-05-14 15:59:13.428 | DEBUG | adapter.botservice:preset_ask:30 - [预设] 响应:进入设定模式
2023-05-14 15:59:13.431 | DEBUG | middlewares.timeout:handle_respond:46 - [Timeout] 取消计时……
2023-05-14 15:59:13.432 | DEBUG | platforms.onebot_bot:respond:112 - [OneBot] 尝试发送消息:进入设定模式
2023-05-14 15:59:13.435 | DEBUG | adapter.botservice:preset_ask:33 - [预设] 发送:现在请你记住以下的问题和解决方案, 如果你明白我所说的,请回答“明白”。
当我问你以下问题中的一个时,你要给出对应的回答,如果你明白我所说的,请回答“明白”。
1.问题: Websocket reconnecting... | mirai-conosle started successfully
解决方案:Mirai 窗口中的黄色和红色输出无需理会。
出现该情况是因为你的 Mirai 没有登录 QQ,你需要:
切换到 Mirai 窗口,输入 login 机器人QQ 机器人密码 并回车登录。
Docker-Compose 用户使用:docker-compose run --rm mirai 启动登录程序,登录成功后使用 Ctrl + C 退出,再正常启动即可。
如果你遇到了滑动验证码问题,可以参考:如何完成滑动验证码并取得ticket takayama-lily/node-onebot#28
你也可以阅读:Websocket reconnecting 错误原因及解决方法汇总 | FAQ Enchanted #142
2.问题:系统找不到指定路径
解决方案:请注意程序不要放在包含中文、空格的路径中。
3.问题:ChatGPT is at Capacity right now
解决方案:服务器过载。出现这个情况时不断刷新即可。
4.问题:The system cannot write to the specified device.
解决方案:此问题常见于 Windows Server 2012 服务器,请使用 Powershell 启动 初始化.cmd。
5.问题: 一大堆红字 + OpenAI 登录失败,可能是 session_token 过期或无法通过 CloudFlare 验证,建议歇息一下再重试。
解决方案:重点看有没有 This version of ChromeDriver only supports Chrome version 的字样。
如果有,说明你需要将 Chrome 升级到最新版。
6.问题:ModuleNotFoundError
解决方案:初始化的过程出现问题,重新初始化。
7.问题:当前 QQ 版本过低,请升级至最新版本后再登录
解决方案:你的 QQ 被腾讯风控了。建议用你现在的这个 IP 挂一段时间 PC QQ。
据说使用 ANDROID_WATCH 协议登录 mirai 也可以解决这个问题,在 Mirai 窗口输入:
login 机器人QQ 机器人密码 ANDROID_WATCH 然后回车
autologin setConfig 机器人QQ protocol ANDROID_WATCH 回车
如果你遇到了验证码问题,可以参考:如何完成滑动验证码并取得ticket takayama-lily/node-onebot#28
换协议的教程:Mirai的自动登录以及协议切换
8.问题:Access denied
解决方案:你现在用的这个 IP 被 OpenAI 封禁了,换一个 IP。
9.问题:OpenAI登录失败: TLSClientException
解决方案:你的本地代理配置有问题,连接不上 OpenAI 服务器。
10.问题:TomlDecodeError
解决方案:这就是你配置文件写得有问题。 看看你的 config.cfg 和 项目 README.md 的有什么差别,改一改。
11.问题:OpenAI 在返回结果时出现了错误
解决方案:可能是因为你的 OpenAI 账号一小时内发太多消息被限流了。 可以试试登录多个账号。
听说 plus 版会好点。
如果你明白我所说的,请回答“明白”。
2023-05-14 15:59:13.437 | DEBUG | middlewares.timeout:create_timeout_task:55 - [Timeout] 开始计时……
2023-05-14 15:59:16.879 | ERROR | universal:handle_message:295 - Server disconnected without sending a response.
Traceback (most recent call last):

File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\httpx_transports\default.py", line 60, in map_httpcore_exceptions
yield
File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\httpx_transports\default.py", line 353, in handle_async_request
resp = await self._pool.handle_async_request(req)
│ │ │ └ <Request [b'POST']>
│ │ └ <function AsyncConnectionPool.handle_async_request at 0x00000242669502C0>
│ └ <httpcore.AsyncHTTPProxy object at 0x00000242683002D0>
└ <httpx.AsyncHTTPTransport object at 0x0000024268302E90>
File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\httpcore_async\connection_pool.py", line 253, in handle_async_request
raise exc
File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\httpcore_async\connection_pool.py", line 237, in handle_async_request
response = await connection.handle_async_request(request)
│ │ └ <Request [b'POST']>
│ └ <function AsyncTunnelHTTPConnection.handle_async_request at 0x0000024266951300>
└ <AsyncTunnelHTTPConnection ['https://chatgpt-proxy.lss233.com:443', HTTP/1.1, CLOSED, Request Count: 1]>
File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\httpcore_async\http_proxy.py", line 316, in handle_async_request
return await self._connection.handle_async_request(request)
│ │ │ └ <Request [b'POST']>
│ │ └ <function AsyncHTTP11Connection.handle_async_request at 0x00000242669367A0>
│ └ <AsyncHTTP11Connection ['https://chatgpt-proxy.lss233.com:443', CLOSED, Request Count: 1]>
└ <AsyncTunnelHTTPConnection ['https://chatgpt-proxy.lss233.com:443', HTTP/1.1, CLOSED, Request Count: 1]>
File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\httpcore_async\http11.py", line 112, in handle_async_request
raise exc
File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\httpcore_async\http11.py", line 91, in handle_async_request
) = await self._receive_response_headers(**kwargs)
│ │ └ {'request': <Request [b'POST']>}
│ └ <function AsyncHTTP11Connection._receive_response_headers at 0x0000024266936A20>
└ <AsyncHTTP11Connection ['https://chatgpt-proxy.lss233.com:443', CLOSED, Request Count: 1]>
File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\httpcore_async\http11.py", line 155, in _receive_response_headers
event = await self._receive_event(timeout=timeout)
│ │ └ 360
│ └ <function AsyncHTTP11Connection._receive_event at 0x0000024266936B60>
└ <AsyncHTTP11Connection ['https://chatgpt-proxy.lss233.com:443', CLOSED, Request Count: 1]>
File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\httpcore_async\http11.py", line 205, in _receive_event
raise RemoteProtocolError(msg)
│ └ 'Server disconnected without sending a response.'
└ <class 'httpcore.RemoteProtocolError'>

httpcore.RemoteProtocolError: Server disconnected without sending a response.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "D:\Users\10323\Desktop\GPT-BOT\chatgpt\bot.py", line 54, in
loop.run_until_complete(asyncio.gather(*bots))
│ │ │ │ └ [<Task pending name='Task-3' coro=<start_task() running at D:\Users\10323\Desktop\GPT-BOT\chatgpt\platforms\onebot_bot.py:356...
│ │ │ └ <function gather at 0x0000024264EEA3E0>
│ │ └ <module 'asyncio' from 'D:\Users\10323\Desktop\GPT-BOT\python3.11\python311.zip\asyncio\init.pyc'>
│ └ <function BaseEventLoop.run_until_complete at 0x0000024264F0B240>

File "asyncio\base_events.py", line 640, in run_until_complete
sock.setblocking(False)

File "asyncio\windows_events.py", line 321, in run_forever

File "asyncio\base_events.py", line 607, in run_forever
sock.close()

File "asyncio\base_events.py", line 1922, in _run_once

File "asyncio\events.py", line 80, in _run
self._loop = loop
│ └ <member '_loop' of 'Handle' objects>
└ <Handle Task.task_wakeup()>

File "D:\Users\10323\Desktop\GPT-BOT\chatgpt\platforms\onebot_bot.py", line 151, in _
await handle_message(
└ <function handle_message at 0x00000242692A47C0>

File "D:\Users\10323\Desktop\GPT-BOT\chatgpt\universal.py", line 269, in handle_message
await action(session_id, message.strip(), conversation_context, respond)
│ │ │ │ │ └ <function handle_message..respond at 0x0000024269474900>
│ │ │ │ └ <conversation.ConversationContext object at 0x000002426947B2D0>
│ │ │ └ <method 'strip' of 'str' objects>
│ │ └ '加载预设 答疑助手'
│ └ 'friend-1032336767'
└ <function handle_message..wrap_request..call at 0x0000024269474E00>

File "D:\Users\10323\Desktop\GPT-BOT\chatgpt\universal.py", line 53, in call
await m.handle_request(session_id, message, respond, conversation_context, n)
│ │ │ │ │ │ └ <function handle_message..wrap_request..call at 0x0000024269474D60>
│ │ │ │ │ └ None
│ │ │ │ └ <function handle_message..respond at 0x0000024269474900>
│ │ │ └ '加载预设 答疑助手'
│ │ └ 'friend-1032336767'
│ └ <function MiddlewareConcurrentLock.handle_request at 0x0000024269446020>
└ <middlewares.concurrentlock.MiddlewareConcurrentLock object at 0x000002426945C090>

File "D:\Users\10323\Desktop\GPT-BOT\chatgpt\middlewares\concurrentlock.py", line 43, in handle_request
await action(session_id, prompt, conversation_context, respond)
│ │ │ │ └ <function handle_message..respond at 0x0000024269474900>
│ │ │ └ None
│ │ └ '加载预设 答疑助手'
│ └ 'friend-1032336767'
└ <function handle_message..wrap_request..call at 0x0000024269474D60>

File "D:\Users\10323\Desktop\GPT-BOT\chatgpt\universal.py", line 53, in call
await m.handle_request(session_id, message, respond, conversation_context, n)
│ │ │ │ │ │ └ <function handle_message..wrap_request..call at 0x0000024269474A40>
│ │ │ │ │ └ None
│ │ │ │ └ <function handle_message..respond at 0x0000024269474900>
│ │ │ └ '加载预设 答疑助手'
│ │ └ 'friend-1032336767'
│ └ <function Middleware.handle_request at 0x0000024269445440>
└ <middlewares.baiducloud.MiddlewareBaiduCloud object at 0x000002426945FC50>

File "D:\Users\10323\Desktop\GPT-BOT\chatgpt\middlewares\middleware.py", line 9, in handle_request
await action(session_id, prompt, conversation_context, respond)
│ │ │ │ └ <function handle_message..respond at 0x0000024269474900>
│ │ │ └ None
│ │ └ '加载预设 答疑助手'
│ └ 'friend-1032336767'
└ <function handle_message..wrap_request..call at 0x0000024269474A40>

File "D:\Users\10323\Desktop\GPT-BOT\chatgpt\universal.py", line 53, in call
await m.handle_request(session_id, message, respond, conversation_context, n)
│ │ │ │ │ │ └ <function handle_message..wrap_request..call at 0x0000024269474CC0>
│ │ │ │ │ └ None
│ │ │ │ └ <function handle_message..respond at 0x0000024269474900>
│ │ │ └ '加载预设 答疑助手'
│ │ └ 'friend-1032336767'
│ └ <function MiddlewareRatelimit.handle_request at 0x0000024268BBA2A0>
└ <middlewares.ratelimit.MiddlewareRatelimit object at 0x000002426945C290>

File "D:\Users\10323\Desktop\GPT-BOT\chatgpt\middlewares\ratelimit.py", line 23, in handle_request
await action(session_id, prompt, conversation_context, respond)
│ │ │ │ └ <function handle_message..respond at 0x0000024269474900>
│ │ │ └ None
│ │ └ '加载预设 答疑助手'
│ └ 'friend-1032336767'
└ <function handle_message..wrap_request..call at 0x0000024269474CC0>

File "D:\Users\10323\Desktop\GPT-BOT\chatgpt\universal.py", line 53, in call
await m.handle_request(session_id, message, respond, conversation_context, n)
│ │ │ │ │ │ └ <function handle_message..request at 0x00000242694749A0>
│ │ │ │ │ └ None
│ │ │ │ └ <function handle_message..respond at 0x0000024269474900>
│ │ │ └ '加载预设 答疑助手'
│ │ └ 'friend-1032336767'
│ └ <function MiddlewareTimeout.handle_request at 0x0000024269446160>
└ <middlewares.timeout.MiddlewareTimeout object at 0x000002426945FB90>

File "D:\Users\10323\Desktop\GPT-BOT\chatgpt\middlewares\timeout.py", line 27, in handle_request
await asyncio.wait_for(coro_task, config.response.max_timeout)
│ │ │ │ │ └ 600.0
│ │ │ │ └ Response(mode='text', buffer_delay=0.0, default_ai='chatgpt-web', error_format='出现故障!如果这个问题持续出现,请和我说“重置会话” 来开启一段新的会话,或者发送 “回滚...
│ │ │ └ Config(onebot=Onebot(qq=3192773735, manager_qq=1032336767, reverse_ws_host='0.0.0.0', reverse_ws_port=8566), mirai=None, tele...
│ │ └ <Task finished name='Task-31' coro=<handle_message..request() done, defined at D:\Users\10323\Desktop\GPT-BOT\chatgpt...
│ └ <function wait_for at 0x0000024264EE9E40>
└ <module 'asyncio' from 'D:\Users\10323\Desktop\GPT-BOT\python3.11\python311.zip\asyncio\init.pyc'>

File "asyncio\tasks.py", line 479, in wait_for
for f in todo:

File "D:\Users\10323\Desktop\GPT-BOT\chatgpt\universal.py", line 222, in request
async for rendered in task:
│ └ <async_generator object ConversationContext.load_preset at 0x000002426946B340>
└ '进入设定模式'

File "D:\Users\10323\Desktop\GPT-BOT\chatgpt\conversation.py", line 228, in load_preset
async for item in self.adapter.preset_ask(role=role.lower().strip(), text=text.strip()):
│ │ │ │ │ │ │ └ <method 'strip' of 'str' objects>
│ │ │ │ │ │ └ ' 现在请你记住以下的问题和解决方案,如 果你明白我所说的,请回答“明白”。\n当我问你以下问题中的一个时,你要给出对应的回答,如果你明白我所说的,请回答“明白”。\n1.问题: Websocket reconnecting... | mirai-c...
│ │ │ │ │ └ <method 'lower' of 'str' objects>
│ │ │ │ └ 'user'
│ │ │ └ <function BotAdapter.preset_ask at 0x0000024268E84720>
│ │ └ <adapter.chatgpt.web.ChatGPTWebAdapter object at 0x000002426947C350>
│ └ <conversation.ConversationContext object at 0x000002426947B2D0>
└ '进入设定模式'

File "D:\Users\10323\Desktop\GPT-BOT\chatgpt\adapter\botservice.py", line 35, in preset_ask
async for item in self.ask(text): ...
│ │ │ └ '现在请你记住以下的问题和解决方案,如果你明白我所说的,请回答“明白”。\n当我问你以下问题中的一个时,你要给出对应的回答,如果你明白我所说的,请回答“明白”。\n1.问题: Websocket reconnecting... | mirai-con...
│ │ └ <function ChatGPTWebAdapter.ask at 0x000002426928E0C0>
│ └ <adapter.chatgpt.web.ChatGPTWebAdapter object at 0x000002426947C350>
└ None

File "D:\Users\10323\Desktop\GPT-BOT\chatgpt\adapter\chatgpt\web.py", line 118, in ask
raise e

File "D:\Users\10323\Desktop\GPT-BOT\chatgpt\adapter\chatgpt\web.py", line 78, in ask
async for resp in self.bot.ask(prompt, self.conversation_id, self.parent_id, model=self.current_model):
│ │ │ │ │ │ │ │ │ └ 'text-davinci-002-render-sha'
│ │ │ │ │ │ │ │ └ <adapter.chatgpt.web.ChatGPTWebAdapter object at 0x000002426947C350>
│ │ │ │ │ │ │ └ '9fe1f0f5-b5f8-4a0e-aa00-aee63ad341e9'
│ │ │ │ │ │ └ <adapter.chatgpt.web.ChatGPTWebAdapter object at 0x000002426947C350>
│ │ │ │ │ └ '839dabf0-7270-45b6-9ed3-60b9c53104f3'
│ │ │ │ └ <adapter.chatgpt.web.ChatGPTWebAdapter object at 0x000002426947C350>
│ │ │ └ '现在请你记住以下的问题和解决方案,如果你明白我所说的,请回答“明白”。\n当我问你以下问题中的一个时,你要给出对应的回答,如果你明白我所说的,请回答“明白”。\n1.问题: Websocket reconnecting... | mirai-con...
│ │ └ <function ChatGPTBrowserChatbot.ask at 0x000002426712E340>
│ └ <chatbot.chatgpt.ChatGPTBrowserChatbot object at 0x0000024267161790 [unlocked]>
└ <adapter.chatgpt.web.ChatGPTWebAdapter object at 0x000002426947C350>

File "D:\Users\10323\Desktop\GPT-BOT\chatgpt\chatbot\chatgpt.py", line 57, in ask
async for r in self.bot.ask(prompt=prompt, conversation_id=conversation_id, parent_id=parent_id):
│ │ │ │ │ └ '9fe1f0f5-b5f8-4a0e-aa00-aee63ad341e9'
│ │ │ │ └ '839dabf0-7270-45b6-9ed3-60b9c53104f3'
│ │ │ └ '现在请你记住以下的问题和解决方案,如果你明白我所说的,请回答“明白”。\n当我问你以下问题中的一个时,你要给出对应的回答,如果你明白我所说的,请回答“明白”。\n1.问题: Websocket reconnecting... | mirai-con...
│ │ └ <function AsyncChatbot.ask at 0x000002426711C400>
│ └ <revChatGPT.V1.AsyncChatbot object at 0x00000242663A8E50>
└ <chatbot.chatgpt.ChatGPTBrowserChatbot object at 0x0000024267161790 [unlocked]>

File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\revChatGPT\V1.py", line 1012, in ask
async for msg in self.post_messages(
│ └ <function AsyncChatbot.post_messages at 0x000002426711C360>
└ <revChatGPT.V1.AsyncChatbot object at 0x00000242663A8E50>
File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\revChatGPT\V1.py", line 965, in post_messages
async for msg in self.__send_request(
└ <revChatGPT.V1.AsyncChatbot object at 0x00000242663A8E50>
File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\revChatGPT\V1.py", line 847, in __send_request
async with self.session.stream(
│ │ └ <function AsyncClient.stream at 0x000002426696A980>
│ └ <httpx.AsyncClient object at 0x0000024267193410>
└ <revChatGPT.V1.AsyncChatbot object at 0x00000242663A8E50>

File "contextlib.py", line 204, in aenter

File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\httpx_client.py", line 1576, in stream
response = await self.send(
│ └ <function AsyncClient.send at 0x000002426696AA20>
└ <httpx.AsyncClient object at 0x0000024267193410>
File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\httpx_client.py", line 1620, in send
response = await self._send_handling_auth(
│ └ <function AsyncClient._send_handling_auth at 0x000002426696AAC0>
└ <httpx.AsyncClient object at 0x0000024267193410>
File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\httpx_client.py", line 1648, in _send_handling_auth
response = await self._send_handling_redirects(
│ └ <function AsyncClient._send_handling_redirects at 0x000002426696AB60>
└ <httpx.AsyncClient object at 0x0000024267193410>
File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\httpx_client.py", line 1685, in _send_handling_redirects
response = await self._send_single_request(request)
│ │ └ <Request('POST', 'https://chatgpt-proxy.lss233.com/api/conversation')>
│ └ <function AsyncClient._send_single_request at 0x000002426696AC00>
└ <httpx.AsyncClient object at 0x0000024267193410>
File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\httpx_client.py", line 1722, in _send_single_request
response = await transport.handle_async_request(request)
│ │ └ <Request('POST', 'https://chatgpt-proxy.lss233.com/api/conversation')>
│ └ <function AsyncHTTPTransport.handle_async_request at 0x0000024266953A60>
└ <httpx.AsyncHTTPTransport object at 0x0000024268302E90>
File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\httpx_transports\default.py", line 352, in handle_async_request
with map_httpcore_exceptions():
└ <function map_httpcore_exceptions at 0x00000242667B1120>

File "contextlib.py", line 155, in exit

File "D:\Users\10323\Desktop\GPT-BOT\python3.11\Lib\site-packages\httpx_transports\default.py", line 77, in map_httpcore_exceptions
raise mapped_exc(message) from exc
│ └ 'Server disconnected without sending a response.'
└ <class 'httpx.RemoteProtocolError'>

httpx.RemoteProtocolError: Server disconnected without sending a response.
2023-05-14 15:59:17.071 | DEBUG | platforms.onebot_bot:respond:112 - [OneBot] 尝试发送消息:出现故障!如果这个问题持 续出现,请和我说“重置会话” 来开启一段新的会话,或者发送 “回滚对话” 来回溯到上一条对话,你上一条说的我就当作没看见。
原因:Server disconnected without sending a response.
2023-05-14 15:59:43.445 | DEBUG | platforms.onebot_bot:respond:112 - [OneBot] 尝试发送消息:我还在思考中,请再等一下~
2023-05-14 15:59:43.450 | DEBUG | middlewares.timeout:on_respond:40 - [Timeout] 取消计时……
2023-05-14 15:59:43.453 | DEBUG | middlewares.timeout:create_timeout_task:58 - [Timeout] 等待过久,发送提示

@sof-jun sof-jun added the bug Something isn't working label May 14, 2023
@lss233
Copy link
Owner

lss233 commented May 14, 2023

看样子你的代理有点问题,建议部署在国外服务器,或者换个质量好点的梯子。

@sof-jun
Copy link
Author

sof-jun commented May 15, 2023

看样子你的代理有点问题,建议部署在国外服务器,或者换个质量好点的梯子。

是的经过我的测试就是因为代理问题所导致的,因为我把有一个那种分段回复设置成了0,所以说只要他出现错误他就会停止执行把它设置成15或者其他数字就不会了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants