Closed danielangeloni closed 6 months ago
Very strange. Does the filtering actually filter anything out?I wonder if this could be an issue with paging the result set size. Do you have a large number of clients on your network?
Does the filtering actually filter anything out?
It doesn't seem so, nothing changes (except for the uptime and lastSeen of the returned hosts) when running these two /clients?currentPage=1¤tPageSize=10&filters.active=true /clients?currentPage=1¤tPageSize=10&filters.active=false
but yeah running without &filters
seems to break it. I even tried testing with jibberish, &filters.sdfnsdhjfbsandjifs=asndkjasdkjn
runs without errors which is even weirder as &filter.sdfnsdhjfbsandjifs=asndkjasdkjn
breaks as does &filtersnsdjif.sdfnsdhjfbsandjifs=asndkjasdkjn
. It seems it is just looking for "filters" but not actually doing anything?
I wonder if this could be an issue with paging the result set size. Do you have a large number of clients on your network?
Not really, around 35 on average
Also I am running version 5.12.7 in Docker using https://hub.docker.com/r/mbentley/omada-controller/
Sorry for the wait. I'm now seeing this same problem locally, so I should be able to formulate a fix.
Fixed in release 1.3.7
Hey there
I came across a werid bug trying to get the connected clients.
This is the code i am using
And this is the traceback
I used Developer tools in Firefox and saw the web requests to get clients was
/clients?currentPage=1¤tPageSize=10&filters.active=true&_=1700282586424
The only difference I could see between this and firefox the
filters.active
and_
params. I replayed the request using curl and tested removing the params and when I removedfilters.active
I got the same error ofI found a solution (although not very clean), adding this in _do_request function before it does the request in OmadaApiConnection class seems to fix it