Skip to content

bug: TypeError: Router.__init__() got an unexpected keyword argument 'on_startup' (Starlette 1.0.0 incompatibility) #600

@sarang-26

Description

@sarang-26

Since the release of Starlette 1.0.0 on March 22, 2026, the webui-pipelines image is crashing on startup. This is due to a breaking change in Starlette where the on_startup argument was removed, which is still being passed by older versions of FastAPI or internal application logic.

File "/app/main.py", line 257, in
app = FastAPI(docs_url="/docs", redoc_url=None, lifespan=lifespan)
...
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 787, in init
super().init(
TypeError: Router.init() got an unexpected keyword argument 'on_startup'

We need to pin the starlette to a compatible version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions