-
Notifications
You must be signed in to change notification settings - Fork 262
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
Bug: ERROR Exception inside application: __provides__ #1296
Comments
Interesting! So it looks like However, since uvicorn et al do not even remotely go there, I cannot really understand why your dev/prod behaves differently, unless there is other things going on, you are not realizing. A quick google search on drf-spectacular/drf_spectacular/drainage.py Lines 182 to 189 in f90e7bf
|
guard against broken __dir__ impl #1296
@tfranzel please look into https://github.com/twisted/twisted codebase. We are having the same issue and can be backtracked there: scrapy/scrapy#6307 (comment) Related issues:
I assume we should apply the same fix, do not rely that all methods/attributes returned by |
Describe the bug
There is an issue with drf_spectacular's
@extend_schema_view
that is only happening in production server i.e. Daphne, Gunicorn, Uvicorn. This issue does not happen withpython manage.py runserver
. The server does start up with daphne after removing all@extend_schema_view
decorators.Sample logs using Daphne:
To Reproduce
I have something sort of the following for different views under
/views
dir.Expected behavior
The application should work and start without problems the same way it starts with
python manage.py runserver
The text was updated successfully, but these errors were encountered: