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] 由于目标计算机积极拒绝 #213

Closed
2 of 3 tasks
Haibersut opened this issue Feb 27, 2023 · 2 comments
Closed
2 of 3 tasks

[BUG] 由于目标计算机积极拒绝 #213

Haibersut opened this issue Feb 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Haibersut
Copy link
Collaborator

Haibersut commented Feb 27, 2023

提交 issue 前,请先确认:

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

表现

2023-02-27 14:19:32,326 - urllib3.connectionpool - WARNING - urlopen - Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000025AB17ACBE0>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')': /session/5ab23f0210ae9eba414ded7000903eed/se/log

运行环境:

  • 操作系统:版本 Windows Server 2022 Standard 操作系统内部版本 20348.169
  • Docker: 无
  • 项目版本:1.5.7

复现步骤
描述你是如何触发这个 BUG 的
配置好配置文件后,执行bot.py即可触发

预期行为
之前正常登陆过并且能够回答消息,将新增的配置文件[response]和[trigger]加入后再次重开就不行了。

截图
image

其他内容
PS C:\Users\Administrator\Desktop\chatgpt> py .\bot.py
2023-02-27 14:16:58.020 | INFO | launart.manager:launch_blocking:479 - Starting launart main task...
2023-02-27 14:16:58.022 | INFO | launart.manager:launch:331 - Launching 5 components as async task...
2023-02-27 14:16:58.147 | INFO | graia.ariadne.service:base_telemetry:144 -
_ _ _
/ \ _ _(_) __ _ | | __ ___
/ _ \ | '
| |/ |/ _ | ' \ / _
/ ___ | | | | (| | (| | | | | /
// __| ||_,|_,|| ||_
|

graia-amnesia: 0.7.1
graia-ariadne: 0.10.3
graia-broadcast: 0.19.1
launart: 0.6.3
statv: 0.3.2
2023-02-27 14:16:58.151 | SUCCESS | launart.manager:launch:384 - Layer #1:[http.client/aiohttp, cache.client/memcache] preparation completed.
2023-02-27 14:16:58.153 | INFO | main:start_background:149 - OpenAI 服务器登录中……
2023-02-27 14:16:58.161 | INFO | manager:login:106 - 正在登录第 1 个 OpenAI 账号

2023-02-27 14:16:58.165 | INFO | manager:__login_browser:128 - 模式:浏览器登录

2023-02-27 14:16:58.166 | INFO | manager:__login_browser:129 - 这需要你拥有最新版的 Chrome 浏览器。

2023-02-27 14:16:58.168 | INFO | manager:__login_browser:130 - 即将打开浏览器窗口……

2023-02-27 14:16:58.170 | INFO | manager:__login_browser:131 - 提示:如果你看见了 Cloudflare 验证码,请手动完成验证 。

2023-02-27 14:16:58.172 | INFO | manager:__login_browser:132 - 如果你持续停留在 Found session token 环节,请使用无浏览器登录模式。

Spawning browser...
Browser spawned.
登录 OpenAI ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% -:--:--2023-02-27 14:17:14,933 - urllib3.connectionpool - WARNING - _put_conn - Connection pool is full, discarding connection: localhost. Connection pool size: 1
Found Cloudflare Cookie!
登录 OpenAI ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% -:--:--2023-02-27 14:17:23,842 - urllib3.connectionpool - WARNING - _put_conn - Connection pool is full, discarding connection: localhost. Connection pool size: 1
Found Session Token!
登录 OpenAI ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% -:--:--2023-02-27 14:17:27,776 - urllib3.connectionpool - WARNING - _put_conn - Connection pool is full, discarding connection: localhost. Connection pool size: 1
Login successful.
登录 OpenAI ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
2023-02-27 14:17:34.089 | SUCCESS | manager:login:125 - 成功登录 1/1 个账号!

2023-02-27 14:17:34.090 | INFO | main:start_background:154 - OpenAI 服务器登录成功

2023-02-27 14:17:34.091 | INFO | main:start_background:155 - 尝试从 Mirai 服务中读取机器人 QQ 的 session key……

2023-02-27 14:17:34.092 | SUCCESS | launart.manager:launch:384 - Layer #3:[elizabeth.service] preparation completed.

2023-02-27 14:17:34.093 | INFO | launart.manager:launch:389 - All components prepared, start blocking phase.

2023-02-27 14:17:36.102 | SUCCESS | graia.ariadne.connection.ws:_:62 - Successfully got session key

2023-02-27 14:17:36,813 - urllib3.connectionpool - WARNING - urlopen - Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001B45B0BE860>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')': /session/8c445f855e1d64e7c7d77de0b2d093ad/se/log

@Haibersut Haibersut added the bug Something isn't working label Feb 27, 2023
@Haibersut Haibersut changed the title [BUG] 请填写标题 [BUG] 由于目标计算机积极拒绝 Feb 27, 2023
@Haibersut
Copy link
Collaborator Author

更换到1.5.8-beta版本测试也有类似问题
新增了以下报错
2023-02-27 14:40:55,296 - urllib3.connectionpool - WARNING - _put_conn - Connection pool is full, discarding connection: localhost. Connection pool size: 1
Found Cloudflare Cookie!
2023-02-27 14:41:04,180 - urllib3.connectionpool - WARNING - _put_conn - Connection pool is full, discarding connection: localhost. Connection pool size: 1
Found Session Token!
2023-02-27 14:41:07,596 - urllib3.connectionpool - WARNING - _put_conn - Connection pool is full, discarding connection: localhost. Connection pool size: 1

@lss233
Copy link
Owner

lss233 commented Feb 27, 2023

使用 browserless 模式即可。

@lss233 lss233 closed this as completed Mar 3, 2023
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