WebsiteParsingError
Netflix add-on version
1.23.3
Operative systems used
Android, Windows
Kodi version used
Other (specify in description)
Description of the bug
Good morning I still have a connection error
WebParsingError, on last kodi update
I read the other issues, I didn't find a solution
Steps to reproduce the behavior
No response
Debug log - mandatory
https://paste.kodi.tv/ataqewupas
Possible fix
No response
Additional context
No response
Screenshots
No response
@untiiis that debuglog is too short to see the actual error? On what line did the script crash?
Look for The above exception was the direct cause of the following exception:
@biocoder-frodo
Hey, I got this as an error, I just copied the error lines from the addon
https://paste.kodi.tv/mebosepisa
[plugin.video.netflix (0)] IPC callback raised exception: Unable to extract reactContext
2024-12-02 08:30:12.518 T:14056 error
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Legion\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\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\http_server.py", line 161, in _call_func
return func(**data)
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\logging.py", line 139, in timing_wrapper
return func(*args, **kwargs)
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\session\access.py", line 112, in login_auth_data
website.extract_session_data(self.get('browse'), validate=True, update_profiles=True)
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\logging.py", line 139, in timing_wrapper
return func(*args, **kwargs)
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\website.py", line 72, in extract_session_data
react_context = extract_json(content, 'reactContext')
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\logging.py", line 139, in timing_wrapper
return func(*args, **kwargs)
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\website.py", line 298, in extract_json
raise WebsiteParsingError(f'Unable to extract {name}') from exc
resources.lib.common.exceptions.WebsiteParsingError: Unable to extract reactContext
2024-12-02 08:30:12.520 T:14456 error
Ok, that looks exactly like the error I fixed with the plugin on my libreElec install.
Could you try to change C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\website.py as displayed here.
Do this before starting Kodi and look in the C:Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\__pycache__ folder to remove the Python byte code equivalent of the source code you just changed. Then I'm curious what will happen if you start Kodi and try again. Please note I used the login method with the NFAuthenticationKey file.
@biocoder-frodo
I replaced the line of code, deleted the cache But I still get the same error.
https://paste.kodi.tv/wekonifega
2024-12-03 15:50:45.257 T:7516 error
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Legion\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\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\http_server.py", line 161, in _call_func
return func(**data)
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\logging.py", line 139, in timing_wrapper
return func(*args, **kwargs)
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\services\nfsession\session\access.py", line 112, in login_auth_data
website.extract_session_data(self.get('browse'), validate=True, update_profiles=True)
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\logging.py", line 139, in timing_wrapper
return func(*args, **kwargs)
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\website.py", line 72, in extract_session_data
react_context = extract_json(content, 'reactContext')
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\logging.py", line 139, in timing_wrapper
return func(*args, **kwargs)
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\website.py", line 298, in extract_json
raise WebsiteParsingError(f'Unable to extract {name}') from exc
resources.lib.common.exceptions.WebsiteParsingError: Unable to extract reactContext
2024-12-03 15:50:45.260 T:5804 error
2024-12-03 15:50:45.270 T:13720 info
When did you create the NFAuthenticationKey file? Also, please check the date of changed sourcefile matches the date of the corresponding file in pycache folder; It could be that you get the binary version from the repository first.
Today i go the same error
RASPI 4 NEXUS
Change of line 59 in website.py doesn´t solve it. I delete pycache and restart. Error still remains.
may be NotLoggedInError has todo something with NFAuthentication.key i have never changed it. Last week i had no problem.
024-12-09 10:34:32.867 T:18782 error
with a new created NFAuthenticationKey it ends up with
2024-12-10 19:57:47.493 T:1320 error
2024-12-10 19:57:47.508 T:1303 error
I load the latest version from github and after reboot of raspi reinstall netflix addon. Now i can login with new created NFAuthenticationKey and netflix works again.
Do you place fixed commit for 'normal' updates next time? or should i download code here for myself. i like this app, but i don't know exactly how to download and install for myself :( I've a kodi 18 environment and there's a zip for kodi > v18, but no zip for kodi v18.
Same thing my dad use the extension but don't know what is git... Any chance to have a version with the correction ?