gpt4 book ai didi

Python 脚本失败,出现 ('Connection aborted.' , ConnectionResetError(104, 'Connection reset by peer' ))

转载 作者:行者123 更新时间:2023-12-04 22:36:57 78 4
gpt4 key购买 nike

我和你们中的许多人有类似的问题,但无法解决。我正在生成一个在我的 VirtualBox Linux 7.3 和 7.9 上运行良好的自执行文件,但是当我尝试在其他地方(在其他 Linux 服务器上)运行它时,我得到以下输出:

  Traceback (most recent call last):
File "urllib3/connectionpool.py", line 706, in urlopen
File "urllib3/connectionpool.py", line 382, in _make_request
File "urllib3/connectionpool.py", line 1010, in _validate_conn
File "urllib3/connection.py", line 421, in connect
File "urllib3/util/ssl_.py", line 429, in ssl_wrap_socket
File "urllib3/util/ssl_.py", line 472, in _ssl_wrap_socket_impl
File "ssl.py", line 365, in wrap_socket
File "ssl.py", line 776, in __init__
File "ssl.py", line 1036, in do_handshake
File "ssl.py", line 648, in do_handshake
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "requests/adapters.py", line 449, in send
File "urllib3/connectionpool.py", line 756, in urlopen
File "urllib3/util/retry.py", line 532, in increment
File "urllib3/packages/six.py", line 734, in reraise
File "urllib3/connectionpool.py", line 706, in urlopen
File "urllib3/connectionpool.py", line 382, in _make_request
File "urllib3/connectionpool.py", line 1010, in _validate_conn
File "urllib3/connection.py", line 421, in connect
File "urllib3/util/ssl_.py", line 429, in ssl_wrap_socket
File "urllib3/util/ssl_.py", line 472, in _ssl_wrap_socket_impl
File "ssl.py", line 365, in wrap_socket
File "ssl.py", line 776, in __init__
File "ssl.py", line 1036, in do_handshake
File "ssl.py", line 648, in do_handshake
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "create_incident.py", line 415, in <module>
open_incident_ticket()
File "create_incident.py", line 368, in open_incident_ticket
resp = requests.post(endpoint_uri, headers=headers, data = json.dumps(data))
File "requests/api.py", line 119, in post
File "requests/api.py", line 61, in request
File "requests/sessions.py", line 542, in request
File "requests/sessions.py", line 655, in send
File "requests/adapters.py", line 498, in send
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
我的帖子构造函数如下所示:
resp = requests.post(endpoint_uri, headers=headers, data = json.dumps(data))
你能告诉我我到底需要在哪里寻找它吗?我是否有多个问题正在努力解决?
非常感谢,
马里奥

最佳答案

最后,问题是由防火墙设置引起的。

关于Python 脚本失败,出现 ('Connection aborted.' , ConnectionResetError(104, 'Connection reset by peer' )),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70379603/

78 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com