New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to handle exceptions #409
Comments
Could you, please, attach a code sample? |
Also could you, please, check the version of dependency injector: |
I use
I put together a simple test case here: https://github.com/wackazong/dependency-injector_exception_handling_test_case. Many thanks for your support! |
Thank you for the traceback and test case. There were similar issues in asynchronous mode before. I thought I fixed all of them in |
@wackazong Fixed in |
Very cool. Thank you too. |
I believe I'm running into this issue. I have a Resource that calls an async init function. The function raises an exception and my app hangs indefinitely. I can create a separate ticket for this issue if desired but it seems to be similar to what @wackazong mentioned. I'm running with version 4.40.0. |
@rmk135 I can provide an example if that helps. |
I have a fastapi example running with your library, I like the clean architecture. However, what is the best way to handle exceptions during dependency resolution? At the moment my FastAPI hangs and does not even return a 500.
The text was updated successfully, but these errors were encountered: