Schema generation view (result of get_schema_view
) returns HTTP 404 when some permission class raises Http404
#4645
Labels
Milestone
I found this bug when I was using django-rest-swagger, but during debugging I found out that the problem is in the DRF itself.
Checklist
master
branch of Django REST framework.Steps to reproduce
DjangoObjectPermissions
fromrest_framework.permissions
Expected behavior
The page loads and you can see all accessible endpoints.
Actual behavior
The page loads but you see message like this: "Can't read swagger JSON from http://localhost:8000/?format=openapi". When you check in the developer console you notice that this URL returned HTTP 404.
The text was updated successfully, but these errors were encountered: