For the failing case, I generated sever.log w/ smartmix set to
debugging:
Excellent! Thanks a lot. I think here's the culprit:
[14-10-28 09:41:50.5587] Slim::Utils::Misc::msg (1343) Warning:
[09:41:50.5571] Async::HTTP: Unable to load IO::Socket::SSL, will try
connecting to SSL servers in non-SSL mode
[14-10-28 09:41:51.8216] Plugins::SmartMix::Services::Spotify::__ANON__
(339) Something went wrong checking Spotify availability: (
bless([
sub { "???" },
sub { "???" },
{ params => {}, timeout => 15 },
"GET",
"https://api.spotify.com/v1/tracks?ids=4aD6ggS78b8I6jO6JMpIla",
"Redirection limit exceeded",
undef,
undef,
undef,
undef,
undef,
undef,
], "Slim::Networking::SimpleAsyncHTTP"),
"Redirection limit exceeded",
)
You're lacking IO::Socket::SSL on your system. Could you please try to
install it, then try above test again (you'd need to restart LMS)?
What LMS does when IO::Socket::SSL is missing, is use http instead of
https. Pretty often for simple streams this is ok. But in the case of
the spotify API it would try to redirect from port 80 to https on port
443 - which results in a loop, as LMS would then go to port 80 again.
This is causing the "Redirection limit exceeded" error.
Before I go to add some code to work around this issue I'd like to be
sure this really is it. Would be great if you could run another test
after installing that module.
Thanks a lot!
--
Michael
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins