[BUG] Node-specific ConnectTimeout
not caught properly during federated query
#72
Closed
1 task done
Labels
released
This issue/pull request has been released.
Is there an existing issue for this?
Expected Behavior
When one of the nodes that a federated query is sent to times out, we expect a successful f-API response to still be returned which includes results for the nodes for which the query succeeded, and simply wrap any timeouts/errors in the
"errors"
field in the f-API response.Current Behavior
When the connection to a node times out with a
ConnectTimeout
, the f-API errors out with aninternal server error
😢Error message
Error from f-API logs:
Environment
How to reproduce
No response
Anything else?
Most likely, this is because the category of request errors we're currently trying to catch (which we hoped would capture timeouts) is too narrow - it includes
ConnectError
, but notConnectTimeout
: see https://www.python-httpx.org/exceptions/#the-exception-hierarchyfederation-api/app/api/utility.py
Lines 241 to 245 in 3e76fd0
We should broaden this to
RequestError
and see if that fixes things.The text was updated successfully, but these errors were encountered: