Skip to content

AssertionError: fastapi_inner_astack not found in request scope #1604

@JhonSoto99

Description

@JhonSoto99

Since the release of fastapi 0.118.0
this error ocurrs when paginating results:

from fastapi_pagination import Page
from fastapi_pagination.ext.sqlalchemy import paginate

@contents_router.get(
"",
response_model=Page[UploadedContentResponse],
status_code=status.HTTP_200_OK,
tags=["Contents"],
)
return paginate(images)

images is a Query

The error: AssertionError: fastapi_inner_astack not found in request scope

Is there any solution for this issue?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions