-
Notifications
You must be signed in to change notification settings - Fork 327
Open
Description
Thanks for implementing this. Could we add a watchdog to prevent the client from hanging and returning unclear error messages?
exit command is working fine but for usability, scenario like this should provide info to user as what has happened exactly.
_models.py", line 1031, in aiter_lines
async for text in self.aiter_text():
for line in decoder.decode(text):
yield line
File "/home/proshan/explore-TOOL-5406/fast-agent/.venv/lib/python3.13/site-packages/httpx/_models.py", line 1018, in aiter_text
async for byte_content in self.aiter_bytes():
...<2 lines>...
yield chunk
File "/home/proshan/explore-TOOL-5406/fast-agent/.venv/lib/python3.13/site-packages/httpx/_models.py", line 997, in aiter_bytes
async for raw_bytes in self.aiter_raw():
...<2 lines>...
yield chunk
File "/home/proshan/explore-TOOL-5406/fast-agent/.venv/lib/python3.13/site-packages/httpx/_models.py", line 1055, in aiter_raw
async for raw_stream_bytes in self.stream:
...<2 lines>...
yield chunk
File "/home/proshan/explore-TOOL-5406/fast-agent/.venv/lib/python3.13/site-packages/httpx/_client.py", line 176, in __aiter__
async for chunk in self._stream:
yield chunk
File "/home/proshan/explore-TOOL-5406/fast-agent/.venv/lib/python3.13/site-packages/httpx/_transports/default.py", line 270, in __aiter__
with map_httpcore_exceptions():
~~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/proshan/.local/share/uv/python/cpython-3.13.3-linux-x86_64-gnu/lib/python3.13/contextlib.py", line 162, in __exit__
self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/home/proshan/explore-TOOL-5406/fast-agent/.venv/lib/python3.13/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)
evalstate
Metadata
Metadata
Assignees
Labels
No labels