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?