Skip to content

Documentation Failed to fetch /openapi.json #1811

@NastasiaSaby

Description

@NastasiaSaby

When I click https://host/suburl/documentation

I have a "Failed to load definition".

In the console, I have

Error downloading https://host/openapi.json Failed to fetch

My code looks like that:

from fastapi import FastAPI

app = FastAPI(openapi_url="/openapi.json", docs_url="/documentation")

@app.get("/status")
def return_simple():
    return "ok"
I can't find an anwser for this problem. Do you have any idea?

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