TheAssassin / kodi-invidious-plugin

Invidious plugin for Kodi. A privacy-friendly way of viewing YouTube videos, built using the awesome Invidious service's API.
MIT License
50 stars 16 forks source link

json.decoder.JSONDecodeError #9

Open TRSx80 opened 2 years ago

TRSx80 commented 2 years ago

Hello,

Thanks for sharing your work here!

I cloned repo to my Kodi, rebooted, then got following error (copied from logs) as I was trying to do anything. I seemed to have got the same error no matter which menu item I went to:

2021-12-24 13:34:59.270 T:1247    ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                            - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                           Error Type: <class 'json.decoder.JSONDecodeError'>
                           Error Contents: Expecting value: line 1 column 1 (char 0)
                           Traceback (most recent call last):
                             File "/home/osmc/.kodi/addons/plugin.video.invidious/resources/lib/invidious_addon.py", line 17, in <module>
                               sys.exit(main())
                             File "/home/osmc/.kodi/addons/plugin.video.invidious/resources/lib/invidious_addon.py", line 13, in main
                               return plugin.run()
                             File "/home/osmc/.kodi/addons/plugin.video.invidious/resources/lib/invidious_plugin.py", line 167, in run
                               self.display_special_list(special_list_name)
                             File "/home/osmc/.kodi/addons/plugin.video.invidious/resources/lib/invidious_plugin.py", line 90, in display_special_list
                               self.display_list_of_videos(videos)
                             File "/home/osmc/.kodi/addons/plugin.video.invidious/resources/lib/invidious_plugin.py", line 44, in display_list_of_videos
                               for video in videos:
                             File "/home/osmc/.kodi/addons/plugin.video.invidious/resources/lib/invidious_api.py", line 45, in parse_video_list_response
                               data = response.json()
                             File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/models.py", line 900, in json
                               return complexjson.loads(self.text, **kwargs)
                             File "/usr/lib/python3.7/json/__init__.py", line 348, in loads
                               return _default_decoder.decode(s)
                             File "/usr/lib/python3.7/json/decoder.py", line 337, in decode
                               obj, end = self.raw_decode(s, idx=_w(s, 0).end())
                             File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode
                               raise JSONDecodeError("Expecting value", s, err.value) from None
                           json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
                           -->End of Python script error report<--

I also tried a couple other instances (kavin.rocks as well as invideous.kavin.rocks), to no avail.

Looks like I am on Kodi 19.3.0 (OSMC 20211128 build).

Happy to provide additional logs / debugging / testing if you want. Python is not really my cup of tea. :)

Cheers, TRS-80