API bug report - empty assoclist object

There is a assoclist field in the /wireless/interfaces/status endpoint. It’s defined as object and everything is fine when there is at least one item in the object. Problem is when there is no client connected and the map is empty. In this case API should return empty object {}, but it returns empty array [].

I’m writing a Prometheus exporter, so I need to parse the response and it’s super annoying mistake, because I have to cast everything from the object manually.

I believe it’s super easy fix for you :slight_smile:

References:

Hello,

Apologies for any inconvenience this issue may have caused. I have reported the matter to our RnD team, and I will inform you as soon as I receive their feedback.

We appreciate your patience and understanding.

Best regards,

Cross-reference - assoclist field returns [] instead of {} when empty in /wireless/interfaces/status endpoint · Issue #2 · kozaktomas/teltonika-exporter · GitHub

This topic was automatically closed after 60 days. New replies are no longer allowed.

Hello @kozaktomas,

Hope you’re doing well!

The fix for this issue will be included in the RutOS 7.19 firmware version.

Thank you for your patience.

Best regards,

This topic was automatically closed after 24 days. New replies are no longer allowed.