How to get detailed exception info #2577
Unanswered
llamafilm
asked this question in
Potential Issue
Replies: 2 comments
-
|
Thank you for the hint, finally found out why do requests fail sometimes. It's really bizarre why by default stringification of exceptions results in empty strings. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Yeah I have a similar issue all I get in stacktrace is: Any idea how to find where this is being cause and why? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the recommended way to see detailed connection errors for GET connections? There are many different exception classes in httpx, and I would handle them all in the same way, but I want to print a detailed error message to the debug log for troubleshooting. All the exception classes are empty except for a docstring, so this is what I came up with. But I'm not sure if it's good practice to rely on docstrings like this?
For a realistic example see https://github.com/llamafilm/iotawattpy/blob/patch-1/iotawattpy/connection.py#L45
Beta Was this translation helpful? Give feedback.
All reactions