-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
type error in view.schema.get_operation() #156
Comments
i have a different theory because that error feels way too familiar. @sennierer do you have a different config in production? i would guess your production config is missing REST_FRAMEWORK = {
# YOUR SETTINGS
'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema',
} |
found out just a minute after posting, on the servers we still had an old settings running ;) |
no problem. it happened to me a couple of times. since the root cause is not that obvious i'll add an error message that points new users in the right direction. |
I got the same error when calling
instead of
🙈 |
@stefanpl, yes that is the second way to get this error.
|
Describe the bug
When deploying our locally working instance to production we get the following error:
As this happens only on the server it is hard to trace, but I guess the error is due to our reverse proxy setup that passes X-Headers-* on and proxies requests from http to https.
The text was updated successfully, but these errors were encountered: