Skip to content

Interactive API Docs Shows a Blank Page #2759

@rachari

Description

@rachari

I was trying the sample mentioned on the https://fastapi.tiangolo.com/#installation page.

fastapi 0.63.0
Python 3.8.5

The API calls work as required via curl / browser, however the Interactive API docs / Swagger UI doesn't load.

Checking with Chrome DevTools shows the following :

GET https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui.css net::ERR_CERT_AUTHORITY_INVALID
GET https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui-bundle.js net::ERR_CERT_AUTHORITY_INVALID
docs:15 Uncaught ReferenceError: SwaggerUIBundle is not defined

This seems to be an issue with the CDN from where the Swagger UI related resources are being fetched.

Is there any alternative that can be used for this ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions