Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: __init__() missing 2 required keyword-only arguments: 'request' and 'response' #1425

Closed
Vitocorl opened this issue Sep 27, 2022 · 172 comments · Fixed by #1429
Closed
Labels
Bug Something isn't working Resolution: Fixed Issue resolved by code change (on daily build or next release) Triage: Confirmed Issue has been reproduced by the add-on maintainers

Comments

@Vitocorl
Copy link

Netflix add-on version

1.18.10

Operative systems used

Windows

Kodi version used

Kodi 19 (Matrix)

Description of the bug

I open Netflix addon and when i press to select my profile i get the following error:

TypeError: init() missing 2 required keyword-only arguments: 'request' and 'response'

I also tried to open the addon from the Settings, Addons, My addons, Video addons menu, with the same result

Steps to reproduce the behavior

Open Netflix addon
Press to select profile

Debug log - mandatory

https://paste.kodi.tv/ukugisozor.kodi

Possible fix

No response

Additional context

No response

Screenshots

No response

@Vitocorl Vitocorl added Bug Something isn't working Triage: Needed Issue that was just created and needs someone looking at it labels Sep 27, 2022
@svnoak
Copy link

svnoak commented Sep 27, 2022

I've got the same error message on Raspbian v.1.18.10, default theme and opening Netflix add-on through any possible means.

@MPParsley
Copy link

MPParsley commented Sep 27, 2022

Seems like yesterday's release introduced a bug :

2022-09-27 21:45:58.627 T:13812   ERROR <general>: [plugin.video.netflix (0)] Traceback (most recent call last):
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\cache_management.py", line 163, in get
                                                       cache_entry = self._get_cache_bucket(bucket['name'])[identifier]
                                                   KeyError: '7O6KR5ODUZDINEGJ7FYJCUM2YY_loco_list'
                                                   
                                                   The above exception was the direct cause of the following exception:
                                                   
                                                   Traceback (most recent call last):
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\common\cache_utils.py", line 70, in wrapper
                                                       return G.CACHE.get(_bucket, identifier)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\cache_management.py", line 171, in get
                                                       raise CacheMiss from exc
                                                   resources.lib.common.exceptions.CacheMiss
                                                   
                                                   During handling of the above exception, another exception occurred:
                                                   
                                                   Traceback (most recent call last):
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\http_server.py", line 105, in handle_request
                                                       ret_data = _call_func(func, pickle.loads(data))
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\http_server.py", line 164, in _call_func
                                                       return func()
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\directorybuilder\dir_builder.py", line 48, in get_mainmenu
                                                       loco_list = self.req_loco_list_root()
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\common\cache_utils.py", line 72, in wrapper
                                                       output = func(*args, **kwargs)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\directorybuilder\dir_path_requests.py", line 65, in req_loco_list_root
                                                       path_response = self.nfsession.path_request(**call_args)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\session\path_requests.py", line 32, in path_request
                                                       response = self.post_safe(
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\session\access.py", line 77, in post_safe
                                                       return self.post(endpoint, **kwargs)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\session\http_requests.py", line 41, in post
                                                       return self._request_call(
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\session\http_requests.py", line 48, in _request_call
                                                       return self._request(method, endpoint, None, **kwargs)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\session\http_requests.py", line 103, in _request
                                                       return self._request(method, endpoint, True, **kwargs)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\session\http_requests.py", line 106, in _request
                                                       response.raise_for_status()
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\packages\httpx\_models.py", line 1402, in raise_for_status
                                                       raise HTTPStatusError(message, request=request, response=self)
                                                   httpx.HTTPStatusError: 404 Client Error: Not Found for url: https://www.netflix.com/api/shakti/vedfdb694/pathEvaluator?drmSystem=widevine&withSize=false&materialize=false&routeAPIRequestsThroughFTL=false&isVolatileBillboardsEnabled=true&isTop10Supported=true&categoryCraversEnabled=false&original_path=%2Fshakti%2Fvedfdb694%2FpathEvaluator
                                                   For more information check: https://httpstatuses.com/404

@Vitocorl, seems like your skin also has another error:

2022-09-27 21:45:36.492 T:14104   ERROR <general>: :46: 
2022-09-27 21:45:36.492 T:14104   ERROR <general>: SyntaxWarning
2022-09-27 21:45:36.492 T:14104   ERROR <general>: : 
2022-09-27 21:45:36.492 T:14104   ERROR <general>: "is not" with a literal. Did you mean "!="?
2022-09-27 21:45:36.492 T:14104   ERROR <general>: 
                                                   
2022-09-27 21:45:36.493 T:14104   ERROR <general>:   
2022-09-27 21:45:36.493 T:14104   ERROR <general>: if (self.selecteditem is not ""):

@petvoigt
Copy link

petvoigt commented Sep 27, 2022 via email

@ddavid09
Copy link

The same problem.

@MPParsley MPParsley mentioned this issue Sep 27, 2022
10 tasks
@MPParsley
Copy link

MPParsley commented Sep 27, 2022

Changing is not to != fixed it for me:
v1.18.9...v1.18.10#diff-2e96dd6dd2ab596ae2fceddc34dbe4c10ddaef907c8340d75418dd6ea222c93dR112

@archtur
Copy link

archtur commented Sep 27, 2022

Seems like yesterday's release introduced a bug :

2022-09-27 21:45:58.627 T:13812   ERROR <general>: [plugin.video.netflix (0)] Traceback (most recent call last):
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\cache_management.py", line 163, in get
                                                       cache_entry = self._get_cache_bucket(bucket['name'])[identifier]
                                                   KeyError: '7O6KR5ODUZDINEGJ7FYJCUM2YY_loco_list'
                                                   
                                                   The above exception was the direct cause of the following exception:
                                                   
                                                   Traceback (most recent call last):
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\common\cache_utils.py", line 70, in wrapper
                                                       return G.CACHE.get(_bucket, identifier)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\cache_management.py", line 171, in get
                                                       raise CacheMiss from exc
                                                   resources.lib.common.exceptions.CacheMiss
                                                   
                                                   During handling of the above exception, another exception occurred:
                                                   
                                                   Traceback (most recent call last):
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\http_server.py", line 105, in handle_request
                                                       ret_data = _call_func(func, pickle.loads(data))
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\http_server.py", line 164, in _call_func
                                                       return func()
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\directorybuilder\dir_builder.py", line 48, in get_mainmenu
                                                       loco_list = self.req_loco_list_root()
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\common\cache_utils.py", line 72, in wrapper
                                                       output = func(*args, **kwargs)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\directorybuilder\dir_path_requests.py", line 65, in req_loco_list_root
                                                       path_response = self.nfsession.path_request(**call_args)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\session\path_requests.py", line 32, in path_request
                                                       response = self.post_safe(
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\session\access.py", line 77, in post_safe
                                                       return self.post(endpoint, **kwargs)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\session\http_requests.py", line 41, in post
                                                       return self._request_call(
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\session\http_requests.py", line 48, in _request_call
                                                       return self._request(method, endpoint, None, **kwargs)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\session\http_requests.py", line 103, in _request
                                                       return self._request(method, endpoint, True, **kwargs)
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\session\http_requests.py", line 106, in _request
                                                       response.raise_for_status()
                                                     File "C:\Users\stef\AppData\Roaming\Kodi\addons\plugin.video.netflix\packages\httpx\_models.py", line 1402, in raise_for_status
                                                       raise HTTPStatusError(message, request=request, response=self)
                                                   httpx.HTTPStatusError: 404 Client Error: Not Found for url: https://www.netflix.com/api/shakti/vedfdb694/pathEvaluator?drmSystem=widevine&withSize=false&materialize=false&routeAPIRequestsThroughFTL=false&isVolatileBillboardsEnabled=true&isTop10Supported=true&categoryCraversEnabled=false&original_path=%2Fshakti%2Fvedfdb694%2FpathEvaluator
                                                   For more information check: https://httpstatuses.com/404

@Vitocorl, seems like your skin also has another error:

2022-09-27 21:45:36.492 T:14104   ERROR <general>: :46: 
2022-09-27 21:45:36.492 T:14104   ERROR <general>: SyntaxWarning
2022-09-27 21:45:36.492 T:14104   ERROR <general>: : 
2022-09-27 21:45:36.492 T:14104   ERROR <general>: "is not" with a literal. Did you mean "!="?
2022-09-27 21:45:36.492 T:14104   ERROR <general>: 
                                                   
2022-09-27 21:45:36.493 T:14104   ERROR <general>:   
2022-09-27 21:45:36.493 T:14104   ERROR <general>: if (self.selecteditem is not ""):

Sorry, I cannot confirm this. I have the same issue (since today without updating anything since yesterday) with version 1.18.9 (Matrix on LibreELEC RaspberryPi).

@MPParsley
Copy link

Sorry, I cannot confirm this. I have the same issue (since today without updating anything since yesterday) with version 1.18.9 (Matrix on LibreELEC RaspberryPi).

On LibrELEC Automatic updates are enabled by default, sure you are on 1.18.9?

@putrid1
Copy link

putrid1 commented Sep 27, 2022

Changing is not to != fixed it for me: v1.18.9...v1.18.10#diff-2e96dd6dd2ab596ae2fceddc34dbe4c10ddaef907c8340d75418dd6ea222c93dR112

112 if ret_data != None:
127 if ret_data != None:
did not resolved for me. Did you just change the file in /resources/lib/services/http_server.py and restart kodi?
(ubuntu)

@MPParsley
Copy link

Sorry, I cannot confirm this. I have the same issue (since today without updating anything since yesterday) with version 1.18.9 (Matrix on LibreELEC RaspberryPi).

On LibreELEC Automatic updates are enabled by default, yet I see my LibreELEC also indicates 1.18.9+matrix.1, so you're right.

In fact I cleared the caches as well, this may have solved it for me since the bug is in cache_management.py.

@sualk

This comment was marked as off-topic.

@archtur
Copy link

archtur commented Sep 27, 2022

Sorry, I cannot confirm this. I have the same issue (since today without updating anything since yesterday) with version 1.18.9 (Matrix on LibreELEC RaspberryPi).

On LibrELEC Automatic updates are enabled by default, sure you are on 1.18.9?

Of course I checked the versions twice :). I have disabled automatic updates on my system.

@dm2912
Copy link

dm2912 commented Sep 27, 2022

Seems like yesterday's release introduced a bug :

Like others can confirm it wasnt introduced with yesterdays release. I had not updated and got this error today.

I only update to see if the error was fixed by new release (None of my addons are set to auto update)

but yes, same request/response error here.

SYSTEM: Coreelec

Log is a mess

2022-09-27 21:57:09.601 T:4614     INFO <general>: CPythonInvoker(60, /storage/.kodi/addons/plugin.video.netflix/addon.py): script successfully run
2022-09-27 21:57:11.119 T:4614     INFO <general>: Python interpreter stopped
2022-09-27 21:57:39.516 T:3708     INFO <general>: CActiveAESink::OpenSink - initialize sink
2022-09-27 21:57:39.516 T:3708     INFO <general>: CAESinkALSA::Initialize - Attempting to open device "@"
2022-09-27 21:57:39.523 T:3708     INFO <general>: CAESinkALSA::Initialize - Opened device "sysdefault"
2022-09-27 21:57:39.525 T:3708     INFO <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2022-09-27 21:57:39.526 T:3708     INFO <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
2022-09-27 21:57:39.531 T:4650     INFO <general>: initializing python engine.
2022-09-27 21:57:39.636 T:4650     INFO <general>: [plugin.video.netflix (18)] The debug logging is set as DISABLED
2022-09-27 21:57:41.566 T:4657    ERROR <general>: [plugin.video.netflix (0)] IPC callback raised exception: 404 Client Error: Not Found for url: https://www.netflix.com/api/shakti/vedfdb694/pathEvaluator?drmSystem=widevine&withSize=false&materialize=false&routeAPIRequestsThroughFTL=false&isVolatileBillboardsEnabled=true&isTop10Supported=true&categoryCraversEnabled=false&original_path=%2Fshakti%2Fvedfdb694%2FpathEvaluator
                                                   For more information check: https://httpstatuses.com/404
2022-09-27 21:57:41.575 T:4657    ERROR <general>: [plugin.video.netflix (0)] Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/cache_management.py", line 163, in get
                                                       cache_entry = self._get_cache_bucket(bucket['name'])[identifier]
                                                   KeyError: 'VGIFEJTL3NE4PIWDXGCIW2SW2Q_loco_list'
                                                   
                                                   The above exception was the direct cause of the following exception:
                                                   
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/cache_utils.py", line 70, in wrapper
                                                       return G.CACHE.get(_bucket, identifier)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/cache_management.py", line 171, in get
                                                       raise CacheMiss from exc
                                                   resources.lib.common.exceptions.CacheMiss
                                                   
                                                   During handling of the above exception, another exception occurred:
                                                   
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/http_server.py", line 105, in handle_request
                                                       ret_data = _call_func(func, pickle.loads(data))
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/http_server.py", line 164, in _call_func
                                                       return func()
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/directorybuilder/dir_builder.py", line 48, in get_mainmenu
                                                       loco_list = self.req_loco_list_root()
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/cache_utils.py", line 72, in wrapper
                                                       output = func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/directorybuilder/dir_path_requests.py", line 65, in req_loco_list_root
                                                       path_response = self.nfsession.path_request(**call_args)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/path_requests.py", line 32, in path_request
                                                       response = self.post_safe(
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/access.py", line 77, in post_safe
                                                       return self.post(endpoint, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/http_requests.py", line 41, in post
                                                       return self._request_call(
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/http_requests.py", line 48, in _request_call
                                                       return self._request(method, endpoint, None, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/http_requests.py", line 103, in _request
                                                       return self._request(method, endpoint, True, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/http_requests.py", line 106, in _request
                                                       response.raise_for_status()
                                                     File "/storage/.kodi/addons/plugin.video.netflix/packages/httpx/_models.py", line 1402, in raise_for_status
                                                       raise HTTPStatusError(message, request=request, response=self)
                                                   httpx.HTTPStatusError: 404 Client Error: Not Found for url: https://www.netflix.com/api/shakti/vedfdb694/pathEvaluator?drmSystem=widevine&withSize=false&materialize=false&routeAPIRequestsThroughFTL=false&isVolatileBillboardsEnabled=true&isTop10Supported=true&categoryCraversEnabled=false&original_path=%2Fshakti%2Fvedfdb694%2FpathEvaluator
                                                   For more information check: https://httpstatuses.com/404
                                                   
2022-09-27 21:57:41.847 T:4650    ERROR <general>: [plugin.video.netflix (18)] Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 29, in wrapper
                                                       func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 245, in run
                                                       success = route(pathitems)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 87, in lazy_login_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 127, in route
                                                       _execute(nav_handler, pathitems[1:], G.REQUEST_PARAMS, root_handler)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 156, in _execute
                                                       executor(pathitems=pathitems)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/navigation/directory_utils.py", line 28, in set_custom_viewmode
                                                       override_content_type = func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/navigation/directory.py", line 102, in home
                                                       dir_items, extra_data = common.make_call('get_mainmenu')  # pylint: disable=unused-variable
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/ipc.py", line 94, in make_call
                                                       return make_http_call(endpoint, func_name, data)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/ipc.py", line 115, in make_http_call
                                                       _data = pickle.loads(received_data)
                                                   TypeError: __init__() missing 2 required keyword-only arguments: 'request' and 'response'
                                                   
2022-09-27 21:57:41.849 T:3644     INFO <general>: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
2022-09-27 21:58:26.828 T:3708     INFO <general>: CActiveAESink::OpenSink - initialize sink
2022-09-27 21:58:26.829 T:3708     INFO <general>: CAESinkALSA::Initialize - Attempting to open device "@"
2022-09-27 21:58:26.837 T:3708     INFO <general>: CAESinkALSA::Initialize - Opened device "sysdefault"
2022-09-27 21:58:26.837 T:3708     INFO <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2022-09-27 21:58:26.837 T:3708     INFO <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
2022-09-27 21:58:27.148 T:4650     INFO <general>: CPythonInvoker(62, /storage/.kodi/addons/plugin.video.netflix/addon.py): script successfully run
2022-09-27 21:58:27.148 T:4648    ERROR <general>: GetDirectory - Error getting plugin://plugin.video.netflix/directory/home/?switch_profile_guid=VGIFEJTL3NE4PIWDXGCIW2SW2Q
2022-09-27 21:58:27.175 T:3644    ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflix/directory/home/?switch_profile_guid=VGIFEJTL3NE4PIWDXGCIW2SW2Q) failed
2022-09-27 21:58:27.188 T:4650     INFO <general>: initializing python engine.
2022-09-27 21:58:28.850 T:3644     INFO <general>: NFS is idle. Closing the remaining connections.
2022-09-27 21:58:35.374 T:4673    ERROR <general>: [plugin.video.netflix (0)] IPC callback raised exception: 404 Client Error: Not Found for url: https://www.netflix.com/api/shakti/vedfdb694/pathEvaluator?drmSystem=widevine&withSize=false&materialize=false&routeAPIRequestsThroughFTL=false&isVolatileBillboardsEnabled=true&isTop10Supported=true&categoryCraversEnabled=false&original_path=%2Fshakti%2Fvedfdb694%2FpathEvaluator
                                                   For more information check: https://httpstatuses.com/404
2022-09-27 21:58:35.375 T:4673    ERROR <general>: [plugin.video.netflix (0)] Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/cache_management.py", line 163, in get
                                                       cache_entry = self._get_cache_bucket(bucket['name'])[identifier]
                                                   KeyError: 'VGIFEJTL3NE4PIWDXGCIW2SW2Q_loco_list'
                                                   
                                                   The above exception was the direct cause of the following exception:
                                                   
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/cache_utils.py", line 70, in wrapper
                                                       return G.CACHE.get(_bucket, identifier)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/cache_management.py", line 171, in get
                                                       raise CacheMiss from exc
                                                   resources.lib.common.exceptions.CacheMiss
                                                   
                                                   During handling of the above exception, another exception occurred:
                                                   
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/http_server.py", line 105, in handle_request
                                                       ret_data = _call_func(func, pickle.loads(data))
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/http_server.py", line 164, in _call_func
                                                       return func()
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/directorybuilder/dir_builder.py", line 48, in get_mainmenu
                                                       loco_list = self.req_loco_list_root()
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/cache_utils.py", line 72, in wrapper
                                                       output = func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/directorybuilder/dir_path_requests.py", line 65, in req_loco_list_root
                                                       path_response = self.nfsession.path_request(**call_args)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/path_requests.py", line 32, in path_request
                                                       response = self.post_safe(
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/access.py", line 77, in post_safe
                                                       return self.post(endpoint, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/http_requests.py", line 41, in post
                                                       return self._request_call(
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/http_requests.py", line 48, in _request_call
                                                       return self._request(method, endpoint, None, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/http_requests.py", line 103, in _request
                                                       return self._request(method, endpoint, True, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/http_requests.py", line 106, in _request
                                                       response.raise_for_status()
                                                     File "/storage/.kodi/addons/plugin.video.netflix/packages/httpx/_models.py", line 1402, in raise_for_status
                                                       raise HTTPStatusError(message, request=request, response=self)
                                                   httpx.HTTPStatusError: 404 Client Error: Not Found for url: https://www.netflix.com/api/shakti/vedfdb694/pathEvaluator?drmSystem=widevine&withSize=false&materialize=false&routeAPIRequestsThroughFTL=false&isVolatileBillboardsEnabled=true&isTop10Supported=true&categoryCraversEnabled=false&original_path=%2Fshakti%2Fvedfdb694%2FpathEvaluator
                                                   For more information check: https://httpstatuses.com/404
                                                   
2022-09-27 21:58:35.377 T:4650    ERROR <general>: [plugin.video.netflix (18)] Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 29, in wrapper
                                                       func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 245, in run
                                                       success = route(pathitems)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 87, in lazy_login_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 127, in route
                                                       _execute(nav_handler, pathitems[1:], G.REQUEST_PARAMS, root_handler)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 156, in _execute
                                                       executor(pathitems=pathitems)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/navigation/directory.py", line 69, in root
                                                       self.home(None)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/navigation/directory_utils.py", line 28, in set_custom_viewmode
                                                       override_content_type = func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/navigation/directory.py", line 102, in home
                                                       dir_items, extra_data = common.make_call('get_mainmenu')  # pylint: disable=unused-variable
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/ipc.py", line 94, in make_call
                                                       return make_http_call(endpoint, func_name, data)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/ipc.py", line 115, in make_http_call
                                                       _data = pickle.loads(received_data)
                                                   TypeError: __init__() missing 2 required keyword-only arguments: 'request' and 'response'
                                                   ```

@dm2912

This comment was marked as off-topic.

@Visionario

This comment was marked as off-topic.

@gilbertoferreira
Copy link

Changing is not to != fixed it for me: v1.18.9...v1.18.10#diff-2e96dd6dd2ab596ae2fceddc34dbe4c10ddaef907c8340d75418dd6ea222c93dR112

Yes.
Works for me too.
Kubuntu Kinetic Kudu
Kodi 20.0~alpha2+dfsg1-1build1

@canice86
Copy link

Changing is not to != fixed it for me: v1.18.9...v1.18.10#diff-2e96dd6dd2ab596ae2fceddc34dbe4c10ddaef907c8340d75418dd6ea222c93dR112

I only encountered this error when reduced TTL caches via expert setting. I did this to reduce usage and thus allow other streaming apps (AmazonPrime, Disney+ Netflix) play properly. The addon was causing itself to play nothing ie. Circling to no end, failing to load any video.

@zaphod24
Copy link

Still broken here after change on line 176 to resources/lib/services/nfsession/session/http_requests.py

2022-09-27 22:07:41.304 T:4655 ERROR : [plugin.video.netflix (0)] IPC callback raised exception: 404 Client Error: Not Found for url: https://www.netflix.com/api/shakti/vedfdb694/pathEvaluator?drmSystem=widevine&withSize=false&materialize=false&routeAPIRequestsThroughFTL=false&isVolatileBillboardsEnabled=true&isTop10Supported=true&categoryCraversEnabled=false&original_path=%2Fnq%2Fwebsite%2Fmemberapi%2Fvedfdb694%2FpathEvaluator

@Goorzhel
Copy link

LibreELEC 10.0.2, Kodi 19.4, Pi 4. All evidence in this thread points to an upstream API change.

I'm trying @sualk's fix at <...>/nfsession/session/http_requests.py:174 but it doesn't seem to be taking hold, like @zaphod24 reported. I've tried clearing the compiled Python files (find .kodi -path '*netflix*.pyc' -delete), as well as rebooting.

Logs starting from the point I enable the plugin's debug logging
2022-09-27 20:40:25.040 T:1108     INFO <general>: [plugin.video.netflix (0)] The debug logging is set as ENABLED
2022-09-27 20:40:39.581 T:840     ERROR <general>: Control 55 in window 10025 has been asked to focus, but it can't
2022-09-27 20:40:39.676 T:1120     INFO <general>: initializing python engine.
2022-09-27 20:40:39.693 T:1120     INFO <general>: [plugin.video.netflix (2)] The debug logging is set as ENABLED
2022-09-27 20:40:39.694 T:1120     INFO <general>: [plugin.video.netflix (2)] Started (Version 1.18.10+matrix.1)
2022-09-27 20:40:39.694 T:1120     INFO <general>: [plugin.video.netflix (2)] URL is ParseResult(scheme='plugin', netloc='plugin.video.netflix', path='/', params='', query='', fragment='')
2022-09-27 20:40:39.869 T:1120     INFO <general>: CPythonInvoker(7, /storage/.kodi/addons/plugin.video.netflix/addon.py): script successfully run
2022-09-27 20:40:40.494 T:1120     INFO <general>: initializing python engine.
2022-09-27 20:40:40.519 T:1120     INFO <general>: [plugin.video.netflix (2)] Started (Version 1.18.10+matrix.1)
2022-09-27 20:40:40.520 T:1120     INFO <general>: [plugin.video.netflix (2)] URL is ParseResult(scheme='plugin', netloc='plugin.video.netflix', path='/directory/home/', params='', query='', fragment='')
2022-09-27 20:40:40.613 T:1258     INFO <general>: [plugin.video.netflix (0)] The profile guid E346SWSMSVFODAZKKNZFCU3XF4 is already set, activation not needed.
2022-09-27 20:40:40.814 T:1259  WARNING <general>: [plugin.video.netflix (0)] Attempt to refresh the session due to HTTP error 404
2022-09-27 20:40:41.722 T:1259    ERROR <general>: [plugin.video.netflix (0)] IPC callback raised exception: 404 Client Error: Not Found for url: https://www.netflix.com/api/shakti/vedfdb694/pathEvaluator?drmSystem=widevine&withSize=false&materialize=false&routeAPIRequestsThroughFTL=false&isVolatileBillboardsEnabled=true&isTop10Supported=true&categoryCraversEnabled=false&original_path=%2Fnq%2Fwebsite%2Fmemberapi%2Fvedfdb694%2FpathEvaluator
                                                   For more information check: https://httpstatuses.com/404
2022-09-27 20:40:41.724 T:1259    ERROR <general>: [plugin.video.netflix (0)] Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/cache_management.py", line 163, in get
                                                       cache_entry = self._get_cache_bucket(bucket['name'])[identifier]
                                                   KeyError: 'E346SWSMSVFODAZKKNZFCU3XF4_loco_list'
                                                   
                                                   The above exception was the direct cause of the following exception:
                                                   
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/cache_utils.py", line 70, in wrapper
                                                       return G.CACHE.get(_bucket, identifier)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/cache_management.py", line 171, in get
                                                       raise CacheMiss from exc
                                                   resources.lib.common.exceptions.CacheMiss
                                                   
                                                   During handling of the above exception, another exception occurred:
                                                   
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/http_server.py", line 105, in handle_request
                                                       ret_data = _call_func(func, pickle.loads(data))
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/http_server.py", line 164, in _call_func
                                                       return func()
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/directorybuilder/dir_builder.py", line 48, in get_mainmenu
                                                       loco_list = self.req_loco_list_root()
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/cache_utils.py", line 72, in wrapper
                                                       output = func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/directorybuilder/dir_path_requests.py", line 65, in req_loco_list_root
                                                       path_response = self.nfsession.path_request(**call_args)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/path_requests.py", line 32, in path_request
                                                       response = self.post_safe(
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/access.py", line 77, in post_safe
                                                       return self.post(endpoint, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/http_requests.py", line 41, in post
                                                       return self._request_call(
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/http_requests.py", line 48, in _request_call
                                                       return self._request(method, endpoint, None, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/http_requests.py", line 103, in _request
                                                       return self._request(method, endpoint, True, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/http_requests.py", line 106, in _request
                                                       response.raise_for_status()
                                                     File "/storage/.kodi/addons/plugin.video.netflix/packages/httpx/_models.py", line 1402, in raise_for_status
                                                       raise HTTPStatusError(message, request=request, response=self)
                                                   httpx.HTTPStatusError: 404 Client Error: Not Found for url: https://www.netflix.com/api/shakti/vedfdb694/pathEvaluator?drmSystem=widevine&withSize=false&materialize=false&routeAPIRequestsThroughFTL=false&isVolatileBillboardsEnabled=true&isTop10Supported=true&categoryCraversEnabled=false&original_path=%2Fnq%2Fwebsite%2Fmemberapi%2Fvedfdb694%2FpathEvaluator
                                                   For more information check: https://httpstatuses.com/404
                                                   
2022-09-27 20:40:41.726 T:1120    ERROR <general>: [plugin.video.netflix (2)] Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 29, in wrapper
                                                       func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 245, in run
                                                       success = route(pathitems)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 87, in lazy_login_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 127, in route
                                                       _execute(nav_handler, pathitems[1:], G.REQUEST_PARAMS, root_handler)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 156, in _execute
                                                       executor(pathitems=pathitems)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/navigation/directory_utils.py", line 28, in set_custom_viewmode
                                                       override_content_type = func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/navigation/directory.py", line 102, in home
                                                       dir_items, extra_data = common.make_call('get_mainmenu')  # pylint: disable=unused-variable
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper
                                                       return func(*args, **kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/ipc.py", line 94, in make_call
                                                       return make_http_call(endpoint, func_name, data)
                                                     File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/ipc.py", line 115, in make_http_call
                                                       _data = pickle.loads(received_data)
                                                   TypeError: __init__() missing 2 required keyword-only arguments: 'request' and 'response'
                                                   
2022-09-27 20:40:43.814 T:1120     INFO <general>: CPythonInvoker(7, /storage/.kodi/addons/plugin.video.netflix/addon.py): script successfully run
2022-09-27 20:40:43.814 T:1257    ERROR <general>: GetDirectory - Error getting plugin://plugin.video.netflix/directory/home/?switch_profile_guid=E346SWSMSVFODAZKKNZFCU3XF4
2022-09-27 20:40:43.848 T:840     ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflix/directory/home/?switch_profile_guid=E346SWSMSVFODAZKKNZFCU3XF4) failed
2022-09-27 20:40:43.859 T:1120     INFO <general>: initializing python engine.
2022-09-27 20:40:43.871 T:1120     INFO <general>: [plugin.video.netflix (2)] Started (Version 1.18.10+matrix.1)
2022-09-27 20:40:43.871 T:1120     INFO <general>: [plugin.video.netflix (2)] URL is ParseResult(scheme='plugin', netloc='plugin.video.netflix', path='/', params='', query='', fragment='')
2022-09-27 20:40:44.018 T:1120     INFO <general>: CPythonInvoker(7, /storage/.kodi/addons/plugin.video.netflix/addon.py): script successfully run

@twhitehead
Copy link

I tried the original_path change (plugin version 1.18.2) and it does not appear to have worked for me. My log file is also still reporting the old URL in the error message.

[plugin.video.netflix (0)] IPC callback raised exception: 404 Client Error: Not Found for url: https://www.netflix.com/api/shakti/vedfdb694/pathEvaluator?drmSystem=widevine&withSize=false&materialize=false&routeAPIRequestsThroughFTL=false&isVolatileBillboardsEnabled=true&isTop10Supported=true&categoryCraversEnabled=false&original_path=%2Fnq%2Fwebsite%2Fmemberapi%2Fvedfdb694%2FpathEvaluator

I tried moving my .kodi directory aside and entirely resetting up the plugin, but that didn't help, and I got the same result. I would also note

  • this just started tonight
  • it does still periodically work with no changes (but not most times)

@fedevx

This comment was marked as off-topic.

@CastagnaIT
Copy link
Owner

more or less, the main problem is that netflix has changed api endpoint so its needed partial rework of the part where we fetch the endpoint from website and recheck also others endpoints

@CastagnaIT CastagnaIT added Triage: Confirmed Issue has been reproduced by the add-on maintainers and removed Triage: Needed Issue that was just created and needs someone looking at it labels Sep 28, 2022
@Firesphere
Copy link

Firesphere commented Sep 28, 2022

more or less, the main problem is that netflix has changed api endpoint so its needed partial rework of the part where we fetch the endpoint from website and recheck also others endpoints

Do you have an ETA? Do you need help? (Sorry, not from me, I don't have the time to start getting familiar with the add-on and help fix it, for weeks... sadly)

@CastagnaIT
Copy link
Owner

Do you have an ETA?

No ETA, i work on it on free time an take many hours
so who want support my work there are sponsor links on main page
this is a free project and anyone can also collab by following wiki code guidelines

@sheogorat96
Copy link

sheogorat96 commented Oct 3, 2022

Kodi 19+: plugin.video.netflix_1.18.10+matrix.1_20221002_t4.zip

msl problem still exists:(. new log. box L1

2022-10-03 21:31:41.185 T:32725 DEBUG : void CXBMCApp::OnPlayBackStarted()
2022-10-03 21:31:41.190 T:379 DEBUG : AddOnLog: inputstream.adaptive: WVDecrypter constructed
2022-10-03 21:31:41.190 T:379 ERROR : AddOnLog: inputstream.adaptive: Key system request: com.widevine.alpha
2022-10-03 21:31:41.190 T:379 DEBUG : AddOnLog: inputstream.adaptive: Found decrypter: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/inputstream.adaptive/libssd_wv.so
2022-10-03 21:31:41.190 T:379 DEBUG : AddOnLog: inputstream.adaptive: Supported URN: urn:uuid:EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED
2022-10-03 21:31:41.191 T:32725 DEBUG : Visible Behind request: false
2022-10-03 21:31:41.191 T:379 DEBUG : CurlFile::Open(0xdf6d1e00) http://127.0.0.1:44101/msl/get_manifest?videoid=81434744
2022-10-03 21:31:41.192 T:379 DEBUG : easy_acquire - Created session to http://127.0.0.1
2022-10-03 21:31:41.257 T:32713 DEBUG : ------ Window Init (DialogBusy.xml) ------
2022-10-03 21:31:41.694 T:383 ERROR : [plugin.video.netflix (0)] Full MSL error information:
2022-10-03 21:31:41.695 T:383 ERROR : [plugin.video.netflix (0)] {"signature": "JbItzKD9d53T9CwvpJZeJJ3I/WnMchbr/SYxghbNI09kNqcJCwXrwCeO9iU/u1qlrUpe2iiUX1I/bZXJp+PN5dwyn9brNkf61zITSG3rePg5tDvk7SKhX6SDt0SJzd/95aY6DQ0gcILSp+mnXwrQuFA9vv+9gtQbPfAejvjFseHxzFhlXQNrwVoDvwMgaV/cTWZqw8kzaw0bgwhn2YdfbTGDnYxLcFBqWCE5ZSV9Yq53V9+9iYABTniezAtLtHdcIwVQbbft/cii5uuwgwHKH/hFg0ZwYboxF2XVDYoQ4PTfHuezSBd0PGy/bnZAR19eItb9Z7uwTArG4sERytYuQQ==", "errordata": "eyJpbnRlcm5hbGNvZGUiOjIwNTAzMiwibWVzc2FnZWlkIjoyMTM4MDMxNjI0MTM3MDg5LCJlcnJvcmNvZGUiOjcsImVycm9ybXNnIjoiVXNlciBhdXRoZW50aWNhdGlvbiBkYXRhIGRvZXMgbm90IG1hdGNoIGVudGl0eSBpZGVudGl0eS4iLCJ0aW1lc3RhbXAiOjE2NjQ4MjE5MDF9", "entityauthdata": {"scheme": "RSA", "authdata": {"identity": "Netflix", "pubkeyid": "MSL_TRUSTED_NETWORK_SERVER_KEY"}}}
2022-10-03 21:31:41.697 T:32713 DEBUG : ------ Window Init (DialogConfirm.xml) ------
2022-10-03 21:31:41.697 T:32713 INFO : Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
2022-10-03 21:31:42.893 T:32713 DEBUG : Keyboard: scancode: 0x17, sym: 0x13, unicode: 0x0000, modifier: 0x0
2022-10-03 21:31:43.015 T:32713 DEBUG : Skipped 1 duplicate messages..
2022-10-03 21:31:43.015 T:32713 DEBUG : HandleKey: return (0xf00d) pressed, action is Select
2022-10-03 21:31:43.259 T:32713 DEBUG : ------ Window Deinit (DialogConfirm.xml) ------
2022-10-03 21:31:43.268 T:383 ERROR : ----------------------------------------
2022-10-03 21:31:43.268 T:383 ERROR :
2022-10-03 21:31:43.268 T:383 ERROR : Exception happened during processing of request from
2022-10-03 21:31:43.268 T:383 ERROR :
2022-10-03 21:31:43.268 T:383 ERROR : ('127.0.0.1', 42670)
2022-10-03 21:31:43.268 T:383 ERROR :
2022-10-03 21:31:43.284 T:383 ERROR : Traceback (most recent call last):
2022-10-03 21:31:43.284 T:383 ERROR :
2022-10-03 21:31:43.285 T:383 ERROR : File "/data/user/0/org.xbmc.kodi/cache/apk/assets/python3.8/lib/python3.8/socketserver.py", line 650, in process_request_thread self.finish_request(request, client_address)
2022-10-03 21:31:43.285 T:383 ERROR :
2022-10-03 21:31:43.285 T:383 ERROR : File "/data/user/0/org.xbmc.kodi/cache/apk/assets/python3.8/lib/python3.8/socketserver.py", line 360, in finish_request self.RequestHandlerClass(request, client_address, self)
2022-10-03 21:31:43.285 T:383 ERROR :
2022-10-03 21:31:43.285 T:383 ERROR : File "/data/user/0/org.xbmc.kodi/cache/apk/assets/python3.8/lib/python3.8/socketserver.py", line 720, in init self.handle()
2022-10-03 21:31:43.285 T:383 ERROR :
2022-10-03 21:31:43.285 T:383 ERROR : File "/data/user/0/org.xbmc.kodi/cache/apk/assets/python3.8/lib/python3.8/http/server.py", line 427, in handle self.handle_one_request()
2022-10-03 21:31:43.285 T:383 ERROR :
2022-10-03 21:31:43.285 T:383 ERROR : File "/data/user/0/org.xbmc.kodi/cache/apk/assets/python3.8/lib/python3.8/http/server.py", line 415, in handle_one_request method()
2022-10-03 21:31:43.285 T:383 ERROR :
2022-10-03 21:31:43.286 T:383 ERROR : File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/resources/lib/services/http_server.py", line 35, in do_GET handle_msl_request(self, func_name, None, params)
2022-10-03 21:31:43.286 T:383 ERROR :
2022-10-03 21:31:43.286 T:383 ERROR : File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/resources/lib/services/http_server.py", line 88, in handle_msl_request manifest_data = server.server.netflix_session.msl_handler.get_manifest(videoid, unquote(challenge), sid)
2022-10-03 21:31:43.286 T:383 ERROR :
2022-10-03 21:31:43.286 T:383 ERROR : File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/msl/msl_utils.py", line 60, in error_catching_wrapper return func(*args, **kwargs)
2022-10-03 21:31:43.286 T:383 ERROR :
2022-10-03 21:31:43.286 T:383 ERROR : File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/msl/msl_handler.py", line 97, in get_manifest manifest = self._get_manifest(viewable_id, esn, challenge, sid)
2022-10-03 21:31:43.286 T:383 ERROR :
2022-10-03 21:31:43.286 T:383 ERROR : File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper return func(*args, **kwargs)
2022-10-03 21:31:43.286 T:383 ERROR :
2022-10-03 21:31:43.286 T:383 ERROR : File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/msl/msl_handler.py", line 150, in _get_manifest manifest = self.msl_requests.chunked_request(endpoint_url, request_data, esn, disable_msl_switch=False)
2022-10-03 21:31:43.286 T:383 ERROR :
2022-10-03 21:31:43.287 T:383 ERROR : File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper return func(*args, **kwargs)
2022-10-03 21:31:43.287 T:383 ERROR :
2022-10-03 21:31:43.287 T:383 ERROR : File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/msl/msl_requests.py", line 187, in chunked_request chunked_response = self._process_chunked_response(
2022-10-03 21:31:43.287 T:383 ERROR :
2022-10-03 21:31:43.287 T:383 ERROR : File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py", line 139, in timing_wrapper return func(*args, **kwargs)
2022-10-03 21:31:43.287 T:383 ERROR :
2022-10-03 21:31:43.287 T:383 ERROR : File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/msl/msl_requests.py", line 224, in _process_chunked_response header, payloads = _process_json_response(response)
2022-10-03 21:31:43.287 T:383 ERROR :
2022-10-03 21:31:43.287 T:383 ERROR : File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/msl/msl_requests.py", line 252, in _process_json_response return _raise_if_error(data[0]), payloads
2022-10-03 21:31:43.287 T:383 ERROR :
2022-10-03 21:31:43.287 T:383 ERROR : File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/msl/msl_requests.py", line 271, in _raise_if_error raise MSLError(err_message, err_number)
2022-10-03 21:31:43.287 T:383 ERROR :
2022-10-03 21:31:43.287 T:383 ERROR : resources.lib.common.exceptions.MSLError: User authentication data does not match entity identity.
2022-10-03 21:31:43.288 T:383 ERROR :
2022-10-03 21:31:43.288 T:383 ERROR : ----------------------------------------
2022-10-03 21:31:43.288 T:383 ERROR :
2022-10-03 21:31:43.289 T:379 ERROR : CCurlFile::FillBuffer - Failed: Server returned nothing (no headers, no data)(52)
2022-10-03 21:31:43.289 T:379 ERROR : CCurlFile::Open failed with code 0 for http://127.0.0.1:44101/msl/get_manifest?videoid=81434744:
2022-10-03 21:31:43.289 T:379 ERROR : AddOnLog: inputstream.adaptive: Download failed: http://127.0.0.1:44101/msl/get_manifest?videoid=81434744
2022-10-03 21:31:43.289 T:379 ERROR : AddOnLog: inputstream.adaptive: Could not open / parse manifest (http://127.0.0.1:44101/msl/get_manifest?videoid=81434744)
2022-10-03 21:31:43.289 T:379 DEBUG : AddOnLog: inputstream.adaptive: Session::~Session()
2022-10-03 21:31:43.289 T:379 DEBUG : AddOnLog: inputstream.adaptive: WVDecrypter destructed
2022-10-03 21:31:43.291 T:379 ERROR : CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.netflix/play/show/80220679/season/81039526/episode/81434744/?profile_guid=CFTJFZN7DNBPJHN5XLKXR6FM5I]
2022-10-03 21:31:43.292 T:379 INFO : CVideoPlayer::OnExit()

@CastagnaIT
Copy link
Owner

ERROR : resources.lib.common.exceptions.MSLError: User authentication data does not match entity identity.

@sheogorat96 this error can happens on android and need a separate investigation, may be only a wrong setting of your installation or other,
so create a new Issue (so dont use this thread) and full fill the bug template, by providing all info and is needed that you also attach the "System Info", you can get it by open addon Expert settings -> Widevine/ESN settings-> Save system info

@sheogorat96
Copy link

sheogorat96 commented Oct 3, 2022

@CastagnaIT works version from here #1424 (comment) testing.... (sound and resolution). I have L1 device

Testing complete: 540p maybe because it is mod only for him :(

Edit: maybe bug for me. On certified TV 540p too. Testing not complete.
But on ipad all fine. wtf netflix.

@jbouwh
Copy link

jbouwh commented Oct 3, 2022

Fix https://github.com/CastagnaIT/plugin.video.netflix/files/9681325/plugin.video.netflix_1.18.10%2Bmatrix.1_20220930_t1.zip
Works for me 😀.
LibreElec 10.0.2 Kodi 19.4
On RPi 4b 2Gb

@JuliusLongmind
Copy link

Fix https://github.com/CastagnaIT/plugin.video.netflix/files/9681325/plugin.video.netflix_1.18.10%2Bmatrix.1_20220930_t1.zip Works for me grinning. LibreElec 10.0.2 Kodi 19.4 On RPi 4b 2Gb

It works to me as well. There was some error message about some "value error", finally it looks ok now,

@sheogorat96

This comment was marked as off-topic.

@oveach
Copy link

oveach commented Oct 3, 2022

Interesting! For example, I have an ancient little RCA streaming box. And while it's slow, and absolutely outside of any support window or updates, it's Netflix app still works... I can't even imagine the number of changes that have happened since this thing was released. So I don't really understand the technical detail of how it's possible that it still works while the kodi app breaks on these changes. It's certainly no fault of the dev here, I'd just like to understand the difference.

I think they use the HTTP request header User-Agent to match old devices and allow them to use old API.

@Spliff58
Copy link

Spliff58 commented Oct 3, 2022

plugin.video.netflix_1.18.10+matrix.1_20221002_t4.zip worked for me to solve this error.
Libreelec 10.02

@WaarlandIT
Copy link

After installing T4 the listing of episodes works but starting an episode fails.

@kazkazki
Copy link

kazkazki commented Oct 4, 2022

t4 worked coreelec 19.5 rc2 . t1-t4 not worked android+kodi

@holema
Copy link

holema commented Oct 4, 2022

T4 worked for me on Raspi 4 with Kodi 19.4. You`ve done a great job @CastagnaIT

@WaarlandIT
Copy link

T4 does show the lists but fails to start an episode (Ubuntu, Kodi 19.4)
Debug info:

2022-10-04 06:59:12.026 T:3901 ERROR : AddOnLog: inputstream.adaptive: Initialize failed (SingleSampleDecrypter)
2022-10-04 06:59:12.026 T:3901 DEBUG : AddOnLog: inputstream.adaptive: Session::~Session()
2022-10-04 06:59:12.036 T:3901 ERROR : CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.netflix/play/show/81150303/season/81157473/episode/81268514/?profile_guid=TDXBDDRI3RGQ3NDVDVOBLJHEXQ]
2022-10-04 06:59:12.036 T:3901 INFO : CVideoPlayer::OnExit()
2022-10-04 06:59:12.036 T:3901 DEBUG : AddOnLog: inputstream.adaptive: Close()

@peterprusi
Copy link

With t4 listing works, but starting a stream fails. t1 works fine for me on Libreelec with Kodi 19.4.
kodi.log

@CastagnaIT
Copy link
Owner

The new addon version release 1.19.0 for Kodi v19 (and above) is in rollout

Other type of errors will be addressed separately because it's too messy here,
so do not report the problem here but create a new Issue, by providing all required data

I repeat again for those use Kodi 18, the backport will be done in following days if no new problems come in Kodi 19+ version

@HATT0R1HANZ0
Copy link

The new addon version release 1.19.0 for Kodi v19 (and above) is in rollout

Other type of errors will be addressed separately because it's too messy here, so do not report the problem here but create a new Issue, by providing all required data

I repeat again for those use Kodi 18, the backport will be done in following days if no new problems come in Kodi 19+ version

Thank you for your incredible work and time and for making the fix possible for Kodi 18 in the near future.
Greetings

@truewego
Copy link

truewego commented Oct 4, 2022

Fix https://github.com/CastagnaIT/plugin.video.netflix/files/9681325/plugin.video.netflix_1.18.10%2Bmatrix.1_20220930_t1.zip Works for me 😀. LibreElec 10.0.2 Kodi 19.4 On RPi 4b 2Gb

Work great for me, THANKS BRO!!

@Boose
Copy link

Boose commented Oct 5, 2022

The new addon version release 1.19.0 for Kodi v19 (and above) is in rollout

Other type of errors will be addressed separately because it's too messy here, so do not report the problem here but create a new Issue, by providing all required data

I repeat again for those use Kodi 18, the backport will be done in following days if no new problems come in Kodi 19+ version

I have been following this issue thread since it started, build t3 partially got the addon working again for me.
I wanted to mention here that the newest build for 1.19.0 (t1) has fixed all my playback issues since this issue arose.
Here is the build that fixed my issues: plugin.video.netflix_1.19.0+matrix.1_20221004_t1.zip
This build is in Issue #1444 Comment-1267237394

I am running the addon in Kodi 19 running LibreELEC 10 on a RPi4.

@CastagnaIT
Copy link
Owner

As reported by some, it seems that for now Netflix has restored the old API
so for now the addon for Kodi 18 work again
then i will have more time to make a backport
In the meantime i would like to thank all the users who supported me

@CastagnaIT CastagnaIT added the Resolution: Fixed Issue resolved by code change (on daily build or next release) label Nov 12, 2022
@anyc
Copy link

anyc commented Dec 2, 2022

I'm still having this problem with 1.20.2. Is the fix not yet in the main branch or am I missing something? Thank you!

@RobenQ
Copy link

RobenQ commented Dec 3, 2022

I'm still having this problem with 1.20.2. Is the fix not yet in the main branch or am I missing something? Thank youme too
me too

@CastagnaIT
Copy link
Owner

By testing addon from phone addon works as expected, but could be, again, new website changes that will be released gradually, so for now problem doesnt happen in my country. Also you haven't provide debug log to analize.
In any case I am sick at bed with covid, so I cannot help to investigate or find fix for a bit of days.

@viktak
Copy link

viktak commented Dec 3, 2022

For me it is working just fine - haven't changed anything on it for at least a month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Resolution: Fixed Issue resolved by code change (on daily build or next release) Triage: Confirmed Issue has been reproduced by the add-on maintainers
Projects
None yet