Traceback (most recent call last):
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connectionpool.py", line 776, in urlopen
self._prepare_proxy(conn)
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1045, in _prepare_proxy
conn.connect()
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connection.py", line 642, in connect
sock_and_verified = _ssl_wrap_socket_and_match_hostname(
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connection.py", line 782, in _ssl_wrap_socket_and_match_hostname
ssl_sock = ssl_wrapsocket(
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/util/ssl.py", line 470, in ssl_wrap_socket
ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, serverhostname)
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/util/ssl.py", line 514, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/opt/homebrew/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 512, in wrap_socket
return self.sslsocket_class._create(
File "/opt/homebrew/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1070, in _create
self.do_handshake()
File "/opt/homebrew/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1341, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 54] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connectionpool.py", line 844, in urlopen
retries = retries.increment(
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/util/retry.py", line 470, in increment
raise reraise(type(error), error, _stacktrace)
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/util/util.py", line 38, in reraise
raise value.with_traceback(tb)
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connectionpool.py", line 776, in urlopen
self._prepare_proxy(conn)
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1045, in _prepare_proxy
conn.connect()
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connection.py", line 642, in connect
sock_and_verified = _ssl_wrap_socket_and_match_hostname(
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connection.py", line 782, in _ssl_wrap_socket_and_match_hostname
ssl_sock = ssl_wrapsocket(
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/util/ssl.py", line 470, in ssl_wrap_socket
ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, serverhostname)
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/util/ssl.py", line 514, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/opt/homebrew/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 512, in wrap_socket
return self.sslsocket_class._create(
File "/opt/homebrew/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1070, in _create
self.do_handshake()
File "/opt/homebrew/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1341, in do_handshake
self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/liubochen/AppAgent/scripts/task_executor.py", line 168, in
rsp = ask_gpt4v(content)
File "/Users/liubochen/AppAgent/scripts/model.py", line 26, in ask_gpt4v
response = requests.post(configs["OPENAI_API_BASE"], headers=headers, json=payload)
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/requests/api.py", line 115, in post
return request("post", url, data=data, json=json, kwargs)
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, kwargs)
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, send_kwargs)
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, kwargs)
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/requests/adapters.py", line 501, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))
我用正确的chatgpt appKey去登录 但是请求后就会报如下错误信息 Round 1
Thinking about what to do in the next step...
Traceback (most recent call last): File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connectionpool.py", line 776, in urlopen self._prepare_proxy(conn) File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1045, in _prepare_proxy conn.connect() File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connection.py", line 642, in connect sock_and_verified = _ssl_wrap_socket_and_match_hostname( File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connection.py", line 782, in _ssl_wrap_socket_and_match_hostname ssl_sock = ssl_wrapsocket( File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/util/ssl.py", line 470, in ssl_wrap_socket ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, serverhostname) File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/util/ssl.py", line 514, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock, server_hostname=server_hostname) File "/opt/homebrew/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 512, in wrap_socket return self.sslsocket_class._create( File "/opt/homebrew/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1070, in _create self.do_handshake() File "/opt/homebrew/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1341, in do_handshake self._sslobj.do_handshake() ConnectionResetError: [Errno 54] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connectionpool.py", line 844, in urlopen retries = retries.increment( File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/util/retry.py", line 470, in increment raise reraise(type(error), error, _stacktrace) File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/util/util.py", line 38, in reraise raise value.with_traceback(tb) File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connectionpool.py", line 776, in urlopen self._prepare_proxy(conn) File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1045, in _prepare_proxy conn.connect() File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connection.py", line 642, in connect sock_and_verified = _ssl_wrap_socket_and_match_hostname( File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/connection.py", line 782, in _ssl_wrap_socket_and_match_hostname ssl_sock = ssl_wrapsocket( File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/util/ssl.py", line 470, in ssl_wrap_socket ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, serverhostname) File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/urllib3/util/ssl.py", line 514, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock, server_hostname=server_hostname) File "/opt/homebrew/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 512, in wrap_socket return self.sslsocket_class._create( File "/opt/homebrew/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1070, in _create self.do_handshake() File "/opt/homebrew/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1341, in do_handshake self._sslobj.do_handshake() urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/Users/liubochen/AppAgent/scripts/task_executor.py", line 168, in
rsp = ask_gpt4v(content)
File "/Users/liubochen/AppAgent/scripts/model.py", line 26, in ask_gpt4v
response = requests.post(configs["OPENAI_API_BASE"], headers=headers, json=payload)
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/requests/api.py", line 115, in post
return request("post", url, data=data, json=json, kwargs)
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, kwargs)
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, send_kwargs)
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, kwargs)
File "/Users/liubochen/AppAgent/e/lib/python3.10/site-packages/requests/adapters.py", line 501, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))