CGI-FR / IoT-Hub-Portal

IoT Hub Portal is a solution for handling IoT Devices easily. It leverages on Azure IoT Hub / AWS IoT Core for connectivity and device management.
https://cgi-fr.github.io/IoT-Hub-Portal/stable/
MIT License
32 stars 11 forks source link

Bug: Can't access to a device out of the 1st page #601

Closed adcoly closed 2 years ago

adcoly commented 2 years ago

Expected Behavior

I click on the button to access to the 2nd page of the device list and I should see the devices listed in there.

Current Behavior

The blue loading bar load endlessly and I can't access to my 11th sensor.

Context (Environment)

Portal version: 1.0.8.50 LoRaWAN Stack version: 2.0.0

Logs

image

hocinehacherouf commented 2 years ago

The next page uri (returned by api) is always null, due to the call to Url.RouteUrl(): https://github.com/CGI-FR/IoT-Hub-Portal/blob/e8bff4ac7b255c792ff6367f6a54d588e5830d40/src/AzureIoTHub.Portal/Server/Controllers/v1.0/DevicesControllerBase.cs#L92-L103

This issue is simillar to dotnet/aspnetcore#14877

A workaround solution is to return directly the continuation token as a replacement of the generated uri.