Quantcast
Channel: Squeezebox : Community : Forums - Logitech Media Server
Viewing all articles
Browse latest Browse all 5300

Perl 5.20 web interface issues related to jsonrpc.js

$
0
0
Hehe... when I saw the announcement for perl 5.20, I knew somebody will
be in trouble, soon :-P. But you did great so far!

> Giving up for tonight but the problem appears to be with JSONRPC.pm
> gzipping the response body (or possibly further down the chain if it's
> gzipped). I haven't yet checked if the gzip looks valid, as I say it's
> late!


LMS requires a few binaries which are shipped for many perl versions and
operating systems. But we don't have them for 5.20. Did you build them
yourself? If so, how did you do it? How did you install LMS anyway?

> But essentially if the response is gzipped it fails, if it's left
> uncompressed it works.


Use of compression is controlled in Slim::Utils::Compress. You could add
a line to check whether it's working or not:

diff --git a/Slim/Utils/Compress.pm b/Slim/Utils/Compress.pm
index e3fc248..2c0d2dd 100644
--- a/Slim/Utils/Compress.pm
+++ b/Slim/Utils/Compress.pm
@@ -20,6 +20,8 @@
require Compress::Raw::Zlib;
$hasZlib = 1;
};
+
+ warn $@ if $@;
}
}

This should give you a warning if LMS fails to load Compress::Raw::Zlib.

--
--

Michael

Viewing all articles
Browse latest Browse all 5300

Trending Articles