Can not deploy FastAPI

I have a problem deploying a minimal FastAPI app

It’s been like this for hours

The project has 1 Python file, main.py:

from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware

app = FastAPI()

origins = ["*"]

app.add_middleware(
    CORSMiddleware,
    allow_origins=origins,
    allow_credentials=True,
    allow_methods=["*"],
    allow_headers=["*"],
)


@app.get("/")
def hello():
    return {"Hello": "World"}

and a requirements.txt file:

fastapi
uvicorn[standard]

Build command: pip install -r requirements.txt
Start command: uvicorn main:app --host 0.0.0.0 --port 10000

Okay, it turns out it is just extremely slow, it is finally live now after two hours.

Hi,

Sorry you are running into these delays. Our team is aware of an issue impacting Free Instance deploys and is currently investigating. We’ll post updates at https://status.render.com/incidents/d4sgjzv1n177.

Thanks for your patience. And again, I’m sorry for any inconvenience.

Best Regards,

Matt

Hi,

This incident has been resolved.

Let me know if you continue to see any deploys taking more than a few minutes.

Best,

Matt

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.