Skip to content

[Bug] User page not working #72

Description

@Miniontoby

Hey,

So I wanted to checkout my favourite artist today, and then it said "Failed check log" (whatever it was)

It seems like there some content being returned as non JSON.

The normal search feature works fine, only artist pages are not working.

Added the logs in here as well, just open the details tab. I triggered the error twice.

Exception Log

2026-01-24 15:26:25.774 T:6847     INFO <general>: initializing python engine.
2026-01-24 15:26:26.419 T:6847     INFO <general>: CPythonInvoker(18, /home/pi/.kodi/addons/plugin.audio.soundcloud/addon.py): script successfully run
2026-01-24 15:26:26.520 T:6847     INFO <general>: Python interpreter stopped
2026-01-24 15:26:31.489 T:6431    ERROR <general>: Control 55 in window 10502 has been asked to focus, but it can't
2026-01-24 15:26:31.511 T:6863     INFO <general>: initializing python engine.
2026-01-24 15:26:32.335 T:6863    ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'requests.exceptions.JSONDecodeError'>
                                                   Error Contents: Expecting value: line 1 column 1 (char 0)
                                                   Traceback (most recent call last):
                                                     File "/home/pi/.kodi/addons/script.module.requests/lib/requests/models.py", line 971, in json
                                                       return complexjson.loads(self.text, **kwargs)
                                                     File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 525, in loads
                                                       return _default_decoder.decode(s)
                                                     File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
                                                       obj, end = self.raw_decode(s)
                                                     File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
                                                       return self.scan_once(s, idx=_w(s, idx).end())
                                                   simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
                                                   
                                                   During handling of the above exception, another exception occurred:
                                                   
                                                   Traceback (most recent call last):
                                                     File "/home/pi/.kodi/addons/plugin.audio.soundcloud/addon.py", line 3, in <module>
                                                       plugin.run()
                                                     File "/home/pi/.kodi/addons/plugin.audio.soundcloud/resources/plugin.py", line 166, in run
                                                       collection = listItems.from_collection(api.call(default_action))
                                                     File "/home/pi/.kodi/addons/plugin.audio.soundcloud/resources/lib/soundcloud/api_v2.py", line 82, in call
                                                       res = self._do_request(url.path, urllib.parse.parse_qs(url.query))
                                                     File "/home/pi/.kodi/addons/plugin.audio.soundcloud/resources/lib/soundcloud/api_v2.py", line 120, in _do_request
                                                       response = requests.get(path, headers=headers, params=payload).json()
                                                     File "/home/pi/.kodi/addons/script.module.requests/lib/requests/models.py", line 975, in json
                                                       raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
                                                   requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
                                                   -->End of Python script error report<--
                                                   
2026-01-24 15:26:32.460 T:6863     INFO <general>: Python interpreter stopped
2026-01-24 15:26:32.476 T:6862    ERROR <general>: GetDirectory - Error getting plugin://plugin.audio.soundcloud/user/?call=%2fusers%2f553816569%2ftracks&id=553816569
2026-01-24 15:26:32.483 T:6431    ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.soundcloud/user/?call=%2fusers%2f553816569%2ftracks&id=553816569) failed
2026-01-24 15:26:35.030 T:6431    ERROR <general>: Control 55 in window 10502 has been asked to focus, but it can't
2026-01-24 15:26:35.059 T:6887     INFO <general>: initializing python engine.
2026-01-24 15:26:35.798 T:6887    ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'requests.exceptions.JSONDecodeError'>
                                                   Error Contents: Expecting value: line 1 column 1 (char 0)
                                                   Traceback (most recent call last):
                                                     File "/home/pi/.kodi/addons/script.module.requests/lib/requests/models.py", line 971, in json
                                                       return complexjson.loads(self.text, **kwargs)
                                                     File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 525, in loads
                                                       return _default_decoder.decode(s)
                                                     File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
                                                       obj, end = self.raw_decode(s)
                                                     File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
                                                       return self.scan_once(s, idx=_w(s, idx).end())
                                                   simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
                                                   
                                                   During handling of the above exception, another exception occurred:
                                                   
                                                   Traceback (most recent call last):
                                                     File "/home/pi/.kodi/addons/plugin.audio.soundcloud/addon.py", line 3, in <module>
                                                       plugin.run()
                                                     File "/home/pi/.kodi/addons/plugin.audio.soundcloud/resources/plugin.py", line 166, in run
                                                       collection = listItems.from_collection(api.call(default_action))
                                                     File "/home/pi/.kodi/addons/plugin.audio.soundcloud/resources/lib/soundcloud/api_v2.py", line 82, in call
                                                       res = self._do_request(url.path, urllib.parse.parse_qs(url.query))
                                                     File "/home/pi/.kodi/addons/plugin.audio.soundcloud/resources/lib/soundcloud/api_v2.py", line 120, in _do_request
                                                       response = requests.get(path, headers=headers, params=payload).json()
                                                     File "/home/pi/.kodi/addons/script.module.requests/lib/requests/models.py", line 975, in json
                                                       raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
                                                   requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
                                                   -->End of Python script error report<--
                                                   
2026-01-24 15:26:35.904 T:6887     INFO <general>: Python interpreter stopped
2026-01-24 15:26:35.924 T:6886    ERROR <general>: GetDirectory - Error getting plugin://plugin.audio.soundcloud/user/?call=%2fusers%2f1266806%2ftracks&id=1266806
2026-01-24 15:26:35.932 T:6431    ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.soundcloud/user/?call=%2fusers%2f1266806%2ftracks&id=1266806) failed
2026-01-24 15:26:40.737 T:6431    ERROR <general>: Control 55 in window 10502 has been asked to focus, but it can't
2026-01-24 15:26:40.759 T:6898     INFO <general>: initializing python engine.
2026-01-24 15:26:41.410 T:6898     INFO <general>: CPythonInvoker(21, /home/pi/.kodi/addons/plugin.audio.soundcloud/addon.py): script successfully run
2026-01-24 15:26:41.516 T:6898     INFO <general>: Python interpreter stopped
2026-01-24 15:26:42.746 T:6904     INFO <general>: initializing python engine.

I hope you can do something about it.
Thanks in advance

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions