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
References: