diff --git a/services/api-server/src/simcore_service_api_server/api/routes/licensed_items.py b/services/api-server/src/simcore_service_api_server/api/routes/licensed_items.py index 3384f7ac243..d02151080ad 100644 --- a/services/api-server/src/simcore_service_api_server/api/routes/licensed_items.py +++ b/services/api-server/src/simcore_service_api_server/api/routes/licensed_items.py @@ -28,7 +28,7 @@ async def get_licensed_items( page_params: Annotated[PaginationParams, Depends()], web_api_rpc: Annotated[WbApiRpcClient, Depends(get_wb_api_rpc_client)], product_name: Annotated[str, Depends(get_product_name)], -) -> Page[LicensedItemGet]: +): return await web_api_rpc.get_licensed_items( product_name=product_name, page_params=page_params ) diff --git a/services/api-server/src/simcore_service_api_server/services_http/webserver.py b/services/api-server/src/simcore_service_api_server/services_http/webserver.py index 79a921a7b42..a66bd7ff3d3 100644 --- a/services/api-server/src/simcore_service_api_server/services_http/webserver.py +++ b/services/api-server/src/simcore_service_api_server/services_http/webserver.py @@ -197,6 +197,7 @@ async def _page_projects( with service_exception_handler( service_name="Webserver", http_status_map={status.HTTP_404_NOT_FOUND: ListJobsError}, + rpc_exception_map={}, ): resp = await self.client.get( "/projects", diff --git a/services/api-server/src/simcore_service_api_server/services_rpc/wb_api_server.py b/services/api-server/src/simcore_service_api_server/services_rpc/wb_api_server.py index b26535f6762..207712e3e47 100644 --- a/services/api-server/src/simcore_service_api_server/services_rpc/wb_api_server.py +++ b/services/api-server/src/simcore_service_api_server/services_rpc/wb_api_server.py @@ -1,5 +1,6 @@ from dataclasses import dataclass from functools import partial +from typing import cast from fastapi import FastAPI from fastapi_pagination import Page, create_page @@ -29,7 +30,7 @@ async def get_licensed_items( offset=page_params.offset, limit=page_params.limit, ) - return create_page( + page = create_page( [ LicensedItemGet( licensed_item_id=elm.licensed_item_id, @@ -44,6 +45,7 @@ async def get_licensed_items( total=licensed_items_page.total, params=page_params, ) + return cast(Page[LicensedItemGet], page) def setup(app: FastAPI, rabbitmq_rmp_client: RabbitMQRPCClient):