Bugzilla – Bug 8801
log filling with 401 errors when password-protected SC instance on subnet
Last modified: 2009-07-31 10:25:01 UTC
Running 7.2ns on the same subnet as a 7.0 instance that has password protection enabled with default log settings (haven't touched the logging prefs since running through the web setup wizard), every minute I get two log entries like this: [08-07-18 21:05:15.0247] Slim::Networking::Async::HTTP::_http_error (264) Error: [401 Unauthorized] [08-07-18 21:05:15.0260] Slim::Networking::Discovery::Players::_players_error (134) Unable to get players: 401 Unauthorized These messages shouldn't show up -- not at this frequency! -- at the default log levels. Maybe at the INFO level, certainly at DEBUG, but not at WARN/ERROR/FATAL
Andy - maybe we should only report the error when there's no error handler and leave the logging to the handler? Or add an additional parameter to set logging level on a per query level, allowing callers to suppress these messages? But then it's an information support might be interested in, as it will tell them why a user doesn't see other players. If we left the error logging to the local handler, this could do some more intelligent handling like not checking every other minute, or only logging once per hour.
Fixed in 7.2 change 22297. Async will now only report errors if the caller doesn't provide an onError callback.
Verified in 7.2.1 - 23496
This bug has been fixed in the 7.3.0 release version of SqueezeCenter! Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already. If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Reduce number of active targets for SC