add-ons / plugin.video.viervijfzes

Kodi add-on to watch video-on-demand content from the Play 4, Play 5 and Play 6 channels.
https://github.com/add-ons/plugin.video.viervijfzes/wiki
GNU General Public License v3.0
50 stars 10 forks source link

kodi : goplay does not work anymore : Python Exception: Could not fetch data #116

Closed pborreke closed 1 year ago

pborreke commented 1 year ago

The plugin worked fine for a few month's, but since a few weeks it doesn't.

ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

PeterCloet commented 1 year ago

I noticed the same issue (same error in the logs) since today. Last time, I ran the plug-in was on Friday.

peno64 commented 1 year ago

Indeed I have the same issue and note that this is with addon version 0.4.9+matrix.1 which is the latest version

on4bam commented 1 year ago

I can confirm. LibreELEC (official): 10.0.4 Kodi (19.5 (19.5.0) Git:19.5-Matrix). Platform: Linux ARM 32-bit on Rpi4
Plugin version 0.4.9+matrix.1

ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

abanink commented 1 year ago

kodi x86_64 20.0+git20230115.1026-389e701cb9-0~jammy goplay add-on version 0.4.9+matrix.1

Debug log:

2023-01-16 17:16:45.472 T:36362 info : [plugin.video.viervijfzes] [resources.lib.viervijfzes.auth] Got an id token from memory 2023-01-16 17:16:45.478 T:36362 info : [plugin.video.viervijfzes] [urllib3.connectionpool] Starting new HTTPS connection (1): api.viervijfzes.be:443 2023-01-16 17:16:45.913 T:36362 info : [plugin.video.viervijfzes] [urllib3.connectionpool] https://api.viervijfzes.be:443 "GET /content/7723475b-1ec0-43e4-8fd8-08becfb2affe HTTP/1.1" 403 1651 2023-01-16 17:16:45.914 T:36362 error : [plugin.video.viervijfzes] [resources.lib.viervijfzes.content] {"message":"Authorization header requires 'Credential' parameter. Authorization header requires 'Signature' parameter. Authorization header requires 'SignedHeaders' parameter. Authorization header requires existence of either a 'X-Amz-Date' or a 'Date' header. Authorization=eyJraWQ...redacted"} 2023-01-16 17:16:45.917 T:36362 error : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

  • NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <class 'Exception'> Error Contents: Could not fetch data Traceback (most recent call last): File "/home/pascal/.kodi/addons/plugin.video.viervijfzes/addon_entry.py", line 18, in run(argv) File "/home/pascal/.kodi/addons/plugin.video.viervijfzes/resources/lib/addon.py", line 194, in run routing.run(params) File "/home/pascal/.kodi/addons/script.module.routing/lib/routing.py", line 130, in run self._dispatch(self.path) File "/home/pascal/.kodi/addons/script.module.routing/lib/routing.py", line 141, in _dispatch view_func(**kwargs) File "/home/pascal/.kodi/addons/plugin.video.viervijfzes/resources/lib/addon.py", line 167, in play_catalog Player().play(uuid) File "/home/pascal/.kodi/addons/plugin.video.viervijfzes/resources/lib/modules/player.py", line 107, in play resolved_stream = self._resolve_stream(uuid) File "/home/pascal/.kodi/addons/plugin.video.viervijfzes/resources/lib/modules/player.py", line 138, in _resolve_stream resolved_stream = ContentApi(auth).get_stream_by_uuid(uuid) File "/home/pascal/.kodi/addons/plugin.video.viervijfzes/resources/lib/viervijfzes/content.py", line 357, in get_stream_by_uuid response = self._get_url(self.API_VIERVIJFZES + '/content/%s' % uuid, authentication=self._auth.get_token()) File "/home/pascal/.kodi/addons/plugin.video.viervijfzes/resources/lib/viervijfzes/content.py", line 737, in _get_url raise Exception('Could not fetch data') Exception: Could not fetch data -->End of Python script error report<--

Couldn't find an option in the add-on interface to clear the token (even in expert mode).

Hope it helps

michaelarnauts commented 1 year ago

Quite sure that this is fixed in the branch of mediaminister. I've merged it now.

Please try this zip: https://github.com/add-ons/plugin.video.viervijfzes/archive/refs/heads/master.zip

PeterCloet commented 1 year ago

Tried and tested. It works! Thanks.

peno64 commented 1 year ago

Tried and tested. It works! Thanks.

Confirmed

JohanHectors commented 1 year ago

yep thanks buddy !

on4bam commented 1 year ago

All OK now. Thanks.

pborreke commented 1 year ago

The plugin worked fine for a few month's, but since a few weeks it doesn't.

ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <class 'Exception'> Error Contents: Could not fetch data Traceback (most recent call last): File "C:\Users\pborr\AppData\Roaming\Kodi\addons\plugin.video.viervijfzes\addon_entry.py", line 18, in run(argv) File "C:\Users\pborr\AppData\Roaming\Kodi\addons\plugin.video.viervijfzes\resources\lib\addon.py", line 194, in run routing.run(params) File "C:\Users\pborr\AppData\Roaming\Kodi\addons\script.module.routing\lib\routing.py", line 130, in run self._dispatch(self.path) File "C:\Users\pborr\AppData\Roaming\Kodi\addons\script.module.routing\lib\routing.py", line 141, in _dispatch view_func(**kwargs) File "C:\Users\pborr\AppData\Roaming\Kodi\addons\plugin.video.viervijfzes\resources\lib\addon.py", line 167, in play_catalog Player().play(uuid) File "C:\Users\pborr\AppData\Roaming\Kodi\addons\plugin.video.viervijfzes\resources\lib\modules\player.py", line 107, in play resolved_stream = self._resolve_stream(uuid) File "C:\Users\pborr\AppData\Roaming\Kodi\addons\plugin.video.viervijfzes\resources\lib\modules\player.py", line 138, in _resolve_stream resolved_stream = ContentApi(auth).get_stream_by_uuid(uuid) File "C:\Users\pborr\AppData\Roaming\Kodi\addons\plugin.video.viervijfzes\resources\lib\viervijfzes\content.py", line 357, in get_stream_by_uuid response = self._get_url(self.API_VIERVIJFZES + '/content/%s' % uuid, authentication=self._auth.get_token()) File "C:\Users\pborr\AppData\Roaming\Kodi\addons\plugin.video.viervijfzes\resources\lib\viervijfzes\content.py", line 737, in _get_url raise Exception('Could not fetch data') Exception: Could not fetch data -->End of Python script error report<--

pborreke commented 1 year ago

Thanks for the succesfully solution in a short period!!