compressJS.sh icon indicating copy to clipboard operation
compressJS.sh copied to clipboard

Error No JSON object could be decoded

Open aniskasmi opened this issue 5 years ago • 2 comments

Hi,

When i test to launch command on debian i have this error :

File "/usr/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded

aniskasmi avatar Sep 17 '20 14:09 aniskasmi

I encountered the same error. It's a workaround, but I made some progress by changing "http" to "https".

SERVICE_URL=https://closure-compiler.appspot.com/compile

TakashiAihara avatar Oct 05 '20 07:10 TakashiAihara

I encountered the same error. It's a workaround, but I made some progress by changing "http" to "https".

SERVICE_URL=https://closure-compiler.appspot.com/compile

yes this works for me too although the created javascript is twice as big as the one made by http that worked ok one megabyte is twice a half altogether bigger than importing and compiling whatever it is the javascript files one by one as putting them in one huge file has deleterious effects on functionality

thisname12345 avatar Feb 24 '22 20:02 thisname12345