-
-
Notifications
You must be signed in to change notification settings - Fork 735
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
Uvicorn fails "quietly" upon a circular import error #2035
Labels
Comments
I'll take a run at this :) |
Thanks. The problem is here: Lines 20 to 26 in 59f0ddb
|
#2038 tries to address this |
It will be available on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discussed in #2034
Originally posted by mikeedjones July 8, 2023
From this comment and discussion.
When there is a circular import in the app, uvicorn reports
ERROR: Error loading ASGI app. Could not import module "main".
without exposing the stacktrace which would be reported if you ran the code usingpython main.py
. MRE below.Running with
only results in
whereas running
reports the far more useful
Not sure how you'd start debugging this one I'm afraid - or if its even a "bug". For comparison syntax errors are reported correctly.
The text was updated successfully, but these errors were encountered: