server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: GET packages endpoint is not working anymore

Open iosb-ina-mr opened this issue 7 months ago • 3 comments

Describe the bug

The API endpoint "GET /packages" is not working anymore for the latest aasx-server-blazor-for-demo:main. Since I can't find any version number, here is the timestamp of when it was released on docker hub: Jul 25, 2024 at 1:09 am. I have attached the error log below. Even when I provide an AAS-ID (base64-encoded), as advised by the error response, a different error is returned.

To reproduce

Deploy the current version of the aasx-server-blazor-for-demo container, open the swagger UI and trigger the GET /packages endpoint.

Expected Behaviour

When no AAS-ID is given, the list of all AAS-IDs should be returned including their package-IDs.

Version

adminshellio/aasx-server-blazor-for-demo:main

Operating System

Linux

Relevant log output

info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0],
      Executing endpoint 'IO.Swagger.Controllers.AASXFileServerAPIApiController.GetAllAASXPackageIds (IO.Swagger.Lib.V3)',
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102],
      Route matched with {action = "GetAllAASXPackageIds", controller = "AASXFileServerAPIApi", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult GetAllAASXPackageIds(System.String, System.Nullable`1[System.Int32], System.String) on controller IO.Swagger.Controllers.AASXFileServerAPIApiController (IO.Swagger.Lib.V3).,
info: IO.Swagger.Controllers.AASXFileServerAPIApiController[3],
      Received request to get all the AASX packages.,
      Executed action IO.Swagger.Controllers.AASXFileServerAPIApiController.GetAllAASXPackageIds (IO.Swagger.Lib.V3) in 12.6352ms,
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105],
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1],
      Executed endpoint 'IO.Swagger.Controllers.AASXFileServerAPIApiController.GetAllAASXPackageIds (IO.Swagger.Lib.V3)',
fail: IO.Swagger.Lib.V3.Middleware.ExceptionMiddleware[2],
      Cannot proceed as decodedAasId is null,
info: Microsoft.AspNetCore.Hosting.Diagnostics[2],
      Request finished HTTP/1.1 GET http://XX.XX.XX.XX/packages - 403 - application/json 85.7024ms,
      Request starting HTTP/1.1 GET http://XX.XX.XX.XX/packages - - -,
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]

iosb-ina-mr avatar Jul 31 '24 12:07 iosb-ina-mr