ConnectionError
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=6959): Max retries exceeded with url: /prompt (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002592A439450>: Failed to establish a new connection: [WinError 10061] 대상 컴퓨터에서 연결을 거부했으므로 연결하지 못했습니다'))
Traceback (most recent call last)
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\urllib3\connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\urllib3\util\connection.py", line 95, in create_connection
raise err
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\urllib3\util\connection.py", line 85, in create_connection
sock.connect(sa)
During handling of the above exception, another exception occurred:
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\urllib3\connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\urllib3\connection.py", line 244, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "C:\Users\eTL\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Users\eTL\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1328, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Users\eTL\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1277, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Users\eTL\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1037, in _send_output
self.send(msg)
File "C:\Users\eTL\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 975, in send
self.connect()
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\urllib3\connection.py", line 205, in connect
conn = self._new_conn()
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\urllib3\connection.py", line 186, in _new_conn
raise NewConnectionError(
During handling of the above exception, another exception occurred:
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\requests\adapters.py", line 489, in send
resp = conn.urlopen(
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\urllib3\connectionpool.py", line 787, in urlopen
retries = retries.increment(
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
During handling of the above exception, another exception occurred:
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\flask\app.py", line 2551, in __call__
return self.wsgi_app(environ, start_response)
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\flask\app.py", line 2531, in wsgi_app
response = self.handle_exception(e)
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\flask\app.py", line 2528, in wsgi_app
response = self.full_dispatch_request()
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\flask\app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\flask\app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\flask\app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "C:\ChatGee-main\chatgee\run_server.py", line 59, in local_query
response = send_query_local(query, ChatGee_Config)
File "C:\ChatGee-main\chatgee\base\utility.py", line 86, in send_query_local
response = requests.post(url, json=data)
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\requests\api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\requests\sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\requests\sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "C:\ChatGee-main\venv_chatgee\lib\site-packages\requests\adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=6959): Max retries exceeded with url: /prompt (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002592A439450>: Failed to establish a new connection: [WinError 10061] 대상 컴퓨터에서 연결을 거부했으므로 연결하지 못했습니다'))
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.
You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:
dump() shows all variables in the frame
dump(obj) dumps all that's known about the object
Brought to you by DON'T PANIC, your friendly Werkzeug powered traceback interpreter.