-
Bug
-
Resolution: Done
-
Normal
-
None
When changing the number of pages on the pagination for Subscriptions Usage for RHEL/OpenShift/Ansible, an error occurs making the UI unusable.
See SWATCH-3312.webm
.

Here is the error message:
[
[
{
"error": true,
"errorMessage": "400 {\"errors\":[{\"status\":\"400\",\"code\":\"SUBSCRIPTIONS1002\",\"title\":\"Offset must be divisible by limit\",\"detail\":\"Arbitrary offsets are not currently supported by this API\"}]}",
"fulfilled": false,
"pending": false,
"meta": {
"id": "RHEL for x86",
"productId": "RHEL for x86",
"query": {
"dir": "desc",
"ending": "2025-02-01T23:59:59.999Z",
"limit": 20,
"offset": 150,
"metric_id": "Sockets",
"sort": "last_seen",
"beginning": "2020-02-01T00:00:00.000Z"
},
"action": "getInstancesInventory",
"service": "getInstancesInventory",
"notifications": {}
},
"metaId": "RHEL for x86",
"metaProductId": "RHEL for x86",
"metaQuery": {
"dir": "desc",
"ending": "2025-02-01T23:59:59.999Z",
"limit": 20,
"offset": 150,
"metric_id": "Sockets",
"sort": "last_seen",
"beginning": "2020-02-01T00:00:00.000Z"
},
"metaAction": "getInstancesInventory",
"metaService": "getInstancesInventory",
"metaNotifications": {},
"status": 400
}
]
]
Note: the offset should be reset, perhaps to the first page, or maybe to the nearest page. To be decided in refinement