You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe your environment Describe any aspect of your environment relevant to the problem, including your Python version, platform, version numbers of installed dependencies, information about your cloud hosting provider, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on main.
No environmental factors - originally occurred in production (Linux VM, python 3.11), and reproduced locally on MacOS python3.11.
future.result() in _finish_tracing_callback throws an exception if the future result is an exception. This is expected behaviour for the future api, but based on how the code is structured, this appears to not be desired here.
The impact is the unhandled exception bubbles up to the asyncio runtime where it's logged. Which is undesired as this may be an error that the app normally expects and handles without logging.
Steps to reproduce
Using tornado http client, make a request that causes the client to return a future containing an exception (response of 404, 500, etc...)
What is the expected behavior?
_finish_tracing_callback gracefully handles a future with an exception result
What is the actual behavior?
When _finish_tracing_callback reads a future with an exception result, it throws an exception that is ultimately unhandled by the lib, causing it to bubble up to the asyncio runtime.
The text was updated successfully, but these errors were encountered:
Describe your environment Describe any aspect of your environment relevant to the problem, including your Python version, platform, version numbers of installed dependencies, information about your cloud hosting provider, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on main.
No environmental factors - originally occurred in production (Linux VM, python 3.11), and reproduced locally on MacOS python3.11.
future.result()
in _finish_tracing_callback throws an exception if the future result is an exception. This is expected behaviour for the future api, but based on how the code is structured, this appears to not be desired here.The impact is the unhandled exception bubbles up to the asyncio runtime where it's logged. Which is undesired as this may be an error that the app normally expects and handles without logging.
Steps to reproduce
What is the expected behavior?
What is the actual behavior?
The text was updated successfully, but these errors were encountered: