Schema generation view (result of get_schema_view) returns HTTP 404 when some permission class raises Http404 · Issue #4645 · encode/django-rest-framework (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@apragacz

Description

@apragacz

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

Steps to reproduce

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.