-
Notifications
You must be signed in to change notification settings - Fork 279
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
httpx.ReadTimeout: The read operation timed out #17
Comments
I have the same issue: 🐧 WebDeveloper 🛠️ Executing Function Please make sure to read the problematic file with the FileReader tool and fix the errors. Rewrite the entire file with FileWriter tool if you get stuck. The above exception was the direct cause of the following exception: Traceback (most recent call last): |
I get a ReadTimeout how can I increase the
THREAD:[ PlannerAgent -> Devid ]: URL https://platform.openai.com/playground?assistant=asst_7Fi6GjmuAxHSzxX6Gvv0RM40&mode=assistant&thread=thread_4oI9KfDLCScEtjOU8CuTL656
Exception in thread Thread-7 (get_completion_stream):
Traceback (most recent call last):
File "/home/seluser/venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
yield
File "/home/seluser/venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 113, in iter
for part in self._httpcore_stream:
File "/home/seluser/venv/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 367, in iter
raise exc from None
File "/home/seluser/venv/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 363, in iter
for part in self._stream:
File "/home/seluser/venv/lib/python3.11/site-packages/httpcore/_sync/http11.py", line 349, in iter
raise exc
File "/home/seluser/venv/lib/python3.11/site-packages/httpcore/_sync/http11.py", line 341, in iter
for chunk in self._connection._receive_response_body(**kwargs):
File "/home/seluser/venv/lib/python3.11/site-packages/httpcore/_sync/http11.py", line 210, in _receive_response_body
event = self._receive_event(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/seluser/venv/lib/python3.11/site-packages/httpcore/_sync/http11.py", line 224, in _receive_event
data = self._network_stream.read(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/seluser/venv/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 124, in read
with map_exceptions(exc_map):
File "/usr/lib/python3.11/contextlib.py", line 158, in exit
self.gen.throw(typ, value, traceback)
File "/home/seluser/venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ReadTimeout: The read operation timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/usr/lib/python3.11/threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "/home/seluser/venv/lib/python3.11/site-packages/agency_swarm/agency/agency.py", line 147, in get_completion_stream
next(gen)
File "/home/seluser/venv/lib/python3.11/site-packages/agency_swarm/threads/thread.py", line 109, in get_completion
self._submit_tool_outputs(tool_outputs, event_handler)
File "/home/seluser/venv/lib/python3.11/site-packages/agency_swarm/threads/thread.py", line 227, in _submit_tool_outputs
stream.until_done()
File "/home/seluser/venv/lib/python3.11/site-packages/openai/lib/streaming/_assistants.py", line 102, in until_done
consume_sync_iterator(self)
File "/home/seluser/venv/lib/python3.11/site-packages/openai/_utils/_streams.py", line 6, in consume_sync_iterator
for _ in iterator:
File "/home/seluser/venv/lib/python3.11/site-packages/openai/lib/streaming/_assistants.py", line 69, in iter
for item in self._iterator:
File "/home/seluser/venv/lib/python3.11/site-packages/openai/lib/streaming/_assistants.py", line 404, in stream
for event in stream:
File "/home/seluser/venv/lib/python3.11/site-packages/openai/_streaming.py", line 46, in iter
for item in self._iterator:
File "/home/seluser/venv/lib/python3.11/site-packages/openai/_streaming.py", line 61, in stream
for sse in iterator:
File "/home/seluser/venv/lib/python3.11/site-packages/openai/_streaming.py", line 53, in _iter_events
yield from self._decoder.iter(self.response.iter_lines())
File "/home/seluser/venv/lib/python3.11/site-packages/openai/_streaming.py", line 287, in iter
for line in iterator:
File "/home/seluser/venv/lib/python3.11/site-packages/httpx/_models.py", line 861, in iter_lines
for text in self.iter_text():
File "/home/seluser/venv/lib/python3.11/site-packages/httpx/_models.py", line 848, in iter_text
for byte_content in self.iter_bytes():
File "/home/seluser/venv/lib/python3.11/site-packages/httpx/_models.py", line 829, in iter_bytes
for raw_bytes in self.iter_raw():
File "/home/seluser/venv/lib/python3.11/site-packages/httpx/_models.py", line 883, in iter_raw
for raw_stream_bytes in self.stream:
File "/home/seluser/venv/lib/python3.11/site-packages/httpx/_client.py", line 126, in iter
for chunk in self._stream:
File "/home/seluser/venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 112, in iter
with map_httpcore_exceptions():
File "/usr/lib/python3.11/contextlib.py", line 158, in exit
self.gen.throw(typ, value, traceback)
File "/home/seluser/venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout: The read operation timed out
The text was updated successfully, but these errors were encountered: