<@ULVA73B9P> How to fix Traceback (most recent cal...
# ask-marvin
m
@Marvin How to fix Traceback (most recent call last): │ │ File "/usr/local/lib/python3.8/dist-packages/prefect/client/base.py", line 193, in _send_with_retry ││ response = await request() ││ File "/usr/local/lib/python3.8/dist-packages/httpx/_client.py", line 1661, in send ││ response = await self._send_handling_auth( │ │ File "/usr/local/lib/python3.8/dist-packages/httpx/_client.py", line 1689, in _send_handling_auth │ │ response = await self._send_handling_redirects( │ │ File "/usr/local/lib/python3.8/dist-packages/httpx/_client.py", line 1726, in _send_handling_redirects │ │ response = await self._send_single_request(request) │ │ File "/usr/local/lib/python3.8/dist-packages/httpx/_client.py", line 1763, in _send_single_request │ │ response = await transport.handle_async_request(request) ││ File "/usr/local/lib/python3.8/dist-packages/httpx/_transports/default.py", line 373, in handle_async_request │ │ resp = await self._pool.handle_async_request(req)
m
It looks like you're encountering an issue with the HTTPX library while using Prefect. To get a better understanding and hopefully find a solution, let's look at the information we've gathered: 1. Checking the Prefect troubleshooting guide, it is important to ensure you are using the latest version of Prefect, as older versions could contain unfixed bugs. To upgrade to the latest version, use:
Copy code
pip install --upgrade prefect
2. The HTTPX error you mentioned seems related to redirect handling. Starting from HTTPX version 0.22.0, redirect following is disabled by default. You might need to ensure that you're correctly handling redirections in your code if this is the case. 3. I didn't find a precise match in the Prefect documentation snippets provided for the specific error you're seeing, which seems to be related to async handling within the HTTPX transport layer. 4. One open GitHub issue is related to a telemetry error on Prefect server start, although this might not be directly related to the error you're experiencing. If that's not the same issue, I would recommend searching for or opening a new GitHub issue specifically about the HTTPX AsyncClient error you're encountering. Please make sure your dependencies are up to date, and if the problem persists, consider submitting this as an issue on the Prefect GitHub repository if one doesn't already exist.