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

WebsiteParsingError #1726

Open
untiiis opened this issue Dec 1, 2024 · 9 comments
Open

WebsiteParsingError #1726

untiiis opened this issue Dec 1, 2024 · 9 comments
Labels
Bug Something isn't working Triage: Needed Issue that was just created and needs someone looking at it

Comments

@untiiis
Copy link

untiiis commented Dec 1, 2024

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 untiiis added Bug Something isn't working Triage: Needed Issue that was just created and needs someone looking at it labels Dec 1, 2024
@untiiis untiiis closed this as completed Dec 1, 2024
@untiiis untiiis reopened this Dec 1, 2024
@biocoder-frodo
Copy link

@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:

@untiiis
Copy link
Author

untiiis commented Dec 2, 2024

@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 : [plugin.video.netflix (0)] Traceback (most recent call last):
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\website.py", line 282, in extract_json
json_str = json_array[0]
IndexError: list index out of range

                                               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 : [plugin.video.netflix (1)] Traceback (most recent call last):
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\run_addon.py", line 29, in wrapper
func(*args, **kwargs)
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\run_addon.py", line 265, in run
success = route(pathitems)
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\run_addon.py", line 88, in lazy_login_wrapper
if G.REQUEST_PARAMS.get('ignore_login') or _check_valid_credentials():
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\run_addon.py", line 73, in _check_valid_credentials
if not login():
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\api_requests.py", line 58, in login
if password and common.make_call('login_auth_data', {'data': data, 'password': password}):
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\common\ipc.py", line 94, in make_call
return make_http_call(endpoint, func_name, data)
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\common\ipc.py", line 117, in make_http_call
raise _data
resources.lib.common.exceptions.WebsiteParsingError: Unable to extract reactContext

@biocoder-frodo
Copy link

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.

@untiiis
Copy link
Author

untiiis commented Dec 3, 2024

@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 : [plugin.video.netflix (0)] IPC callback raised exception: Unable to extract reactContext
2024-12-03 15:50:45.258 T:7516 error : [plugin.video.netflix (0)] Traceback (most recent call last):
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\website.py", line 282, in extract_json
json_str = json_array[0]
IndexError: list index out of range

                                               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 : [plugin.video.netflix (1)] Traceback (most recent call last):
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\run_addon.py", line 29, in wrapper
func(*args, **kwargs)
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\run_addon.py", line 265, in run
success = route(pathitems)
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\run_addon.py", line 88, in lazy_login_wrapper
if G.REQUEST_PARAMS.get('ignore_login') or _check_valid_credentials():
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\run_addon.py", line 73, in _check_valid_credentials
if not login():
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils\api_requests.py", line 58, in login
if password and common.make_call('login_auth_data', {'data': data, 'password': password}):
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\common\ipc.py", line 94, in make_call
return make_http_call(endpoint, func_name, data)
File "C:\Users\Legion\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\common\ipc.py", line 117, in make_http_call
raise _data
resources.lib.common.exceptions.WebsiteParsingError: Unable to extract reactContext

2024-12-03 15:50:45.270 T:13720 info : Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
2024-12-03 15:50:47.834 T:13720 warning : CGUIWindowManager - CGUIWindowManager::HandleAction - ignoring action 107, because topmost modal dialog closing animation is running
2024-12-03 15:50:47.901 T:11716 info : Skipped 3 duplicate messages..
2024-12-03 15:50:47.901 T:11716 error : XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.netflix/

@biocoder-frodo
Copy link

biocoder-frodo commented Dec 3, 2024

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.

@mlc42
Copy link

mlc42 commented Dec 8, 2024

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 : [plugin.video.netflix (0)] 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/nfsession_ops.py", line 82, in fetch_initial_page
self.refresh_session_data(True)
File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/nfsession_ops.py", line 91, in refresh_session_data
response = self.get_safe('browse')
^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/access.py", line 67, in get_safe
self.assert_logged_in()
File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/access.py", line 56, in assert_logged_in
raise NotLoggedInError
resources.lib.common.exceptions.NotLoggedInError

@mlc42
Copy link

mlc42 commented Dec 10, 2024

with a new created NFAuthenticationKey it ends up with

2024-12-10 19:57:47.493 T:1320 error : [plugin.video.netflix (0)] IPC callback raised exception: E-mail field not found
2024-12-10 19:57:47.500 T:1320 error : [plugin.video.netflix (0)] 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 161, in _call_func
return func(**data)
^^^^^^^^^^^^
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/access.py", line 129, in login_auth_data
raise WebsiteParsingError('E-mail field not found')
resources.lib.common.exceptions.WebsiteParsingError: E-mail field not found

2024-12-10 19:57:47.508 T:1303 error : [plugin.video.netflix (1)] 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 265, in run
success = route(pathitems)
^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 88, in lazy_login_wrapper
if G.REQUEST_PARAMS.get('ignore_login') or _check_valid_credentials():
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 73, in _check_valid_credentials
if not login():
^^^^^^^
File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils/api_requests.py", line 49, in login
if password and common.make_call('login_auth_data', {'data': data, 'password': password}):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 117, in make_http_call
raise _data
resources.lib.common.exceptions.WebsiteParsingError: E-mail field not found

@mlc42
Copy link

mlc42 commented Dec 11, 2024

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.

@cow-crash
Copy link

cow-crash commented Dec 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Triage: Needed Issue that was just created and needs someone looking at it
Projects
None yet
Development

No branches or pull requests

4 participants