You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thank you very much for your work. I love the plugin and I've been using it constantly for a long time now. The problem is the plugin suddenly stopped working... I'm using version 1.1.59 on Kodi 17.3 (openelec to be precise) and I'm getting th "please connect to this device or enter your credentials" info whenever I power up the plugin. I did not change anything to the openelec version or the plugin version... The only change I can think of in the infrastructure was I started to use WIFI to connect the HTPC to the network, not the wired connection... The log file says this ...
06:26:23.490 T:140176684726016 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.SyntaxError'>
Error Contents: unexpected EOF while parsing (, line 0)
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.audio.spotify/service.py", line 14, in
MainService()
File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/main_service.py", line 60, in init
self.renew_token()
File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/main_service.py", line 155, in renew_token
username = self.get_username()
File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/main_service.py", line 122, in get_username
username = self.spotty.get_username()
File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/utils.py", line 523, in get_username
data = eval(data)
File "", line 0
^
SyntaxError: unexpected EOF while parsing
-->End of Python script error report<--
Brg,
Adam
The text was updated successfully, but these errors were encountered:
What's going on here is that it's trying to parse JSON results from the output of spotty using eval(), and the line isn't valid Python.
I would start with a fix by replacing the eval() call with a json.loads call. This will make it handle payloads which aren't valid Python but which are valid JSON. If that still crashes, you can catch the exception (it's a JSONDecodeError on Matrix) and go ham on logging to see what spotty is actually giving you.
Hi,
First of all thank you very much for your work. I love the plugin and I've been using it constantly for a long time now. The problem is the plugin suddenly stopped working... I'm using version 1.1.59 on Kodi 17.3 (openelec to be precise) and I'm getting th "please connect to this device or enter your credentials" info whenever I power up the plugin. I did not change anything to the openelec version or the plugin version... The only change I can think of in the infrastructure was I started to use WIFI to connect the HTPC to the network, not the wired connection... The log file says this ...
06:26:23.490 T:140176684726016 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.SyntaxError'>
Error Contents: unexpected EOF while parsing (, line 0)
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.audio.spotify/service.py", line 14, in
MainService()
File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/main_service.py", line 60, in init
self.renew_token()
File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/main_service.py", line 155, in renew_token
username = self.get_username()
File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/main_service.py", line 122, in get_username
username = self.spotty.get_username()
File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/utils.py", line 523, in get_username
data = eval(data)
File "", line 0
Brg,
Adam
The text was updated successfully, but these errors were encountered: