Description
hydrabody logs this error every 30 seconds, continuously:
[sunshine] trim: list clients failed: parsing clients: json: cannot unmarshal object into Go value of type []sunshine.ClientInfo
Sunshine's /api/clients/list now returns a JSON object where hydrabody expects a JSON array, so the client trim routine has been failing silently since the Sunshine version bump. Two consequences:
1. Client trimming never runs, so the Sunshine paired client list grows without bound.
2. The log is unusable. On cosmic-pretzel-98 hydrabody.log is 61 MB and is almost entirely this one line, which buries every other entry. It made investigating issue #428 significantly slower.
Fix: update the sunshine.ClientInfo decoding to match the current response shape (decode the wrapper object, then the clients array), add a test against a captured real response, and rate limit repeated identical errors so a broken poller cannot flood the log.