Website parsing error: unable to extract reactContext. - #1727
Website parsing error: unable to extract reactContext.#1727biocoder-frodo wants to merge 1 commit into
Conversation
Fixes regex capture that prevents the JSON data from loading correctly. The website returned/returns JSON data followed by </script>script>window.netflix = window.netflix || {};</script>
|
I got the problem WebsiteParsingError: Unable to extract reactContext. Box: RPI3 Libreelec 12.0.2 (amv7) Kodi Nexus. Could you please reopen this case? |
|
@homebrew-hgp Please check #1732 |
|
plugin.video.netflix v1.23.5+matrix.1' 2026-08-08 05:18:40.907 T:2292 info : [script.module.inputstreamhelper] Choosing a version to install is only implemented if the lib is found in googles repo. 2026-08-08 05:05:56.977 T:1913 error : [plugin.video.netflix (0)] IPC callback raised exception: Unable to extract reactContext 2026-08-08 05:05:56.995 T:1903 error : [plugin.video.netflix (1)] Traceback (most recent call last): |
|
2026-08-08 05:18:40.907 T:2292 info : [script.module.inputstreamhelper] Choosing a version to install is only implemented if the lib is found in googles repo. |
Fixes regex capture problem that prevents the JSON data from loading correctly.
Check if this PR fulfills these requirements:
Types of changes
Description
After getting a correct login for my daughter's Standard plan Netflix subscription using the NFAuthentication flle,
Kodi would greet me with the WebsiteParsingError: Unable to extract reactContext message.
This error was already reported before here:
#1726
#1711
#1706
I already spotted those issues because getting the NFAuthentication key login to work took a little time.
https://github.com/CastagnaIT/plugin.video.netflix/wiki/Login-with-Authentication-key
NFAuthentication.key generation with Firefox
I got the login working after making sure Kodi was using the plugin.video.netflix-1.23.3+matrix.1 version, by going into the Addon options and selecting this version.
After realizing the login worked, I started preparing for some debugging on my LibreElec machine.
I made some changes in the plugin code to log the contents of the response from the Netflix server and see why the code failed.
The website returned/returns JSON data for the reactContext blob followed by
</script><script>window.netflix = window.netflix || {};</script>The plugin script expects to find
netflix.reactContextandnetflix.falcorCacheJSON array assignments inside<script>tags and those tags were causing the problem. The original regex would select including the last</script>on a line returned by the server and this would mean the JSON deserialization would fail because of the trailing script tags.We have tested the change by watching several episodes in HD without issue and also checked that the two stream limit for the Standard plan was properly checked. The error message that was designed to handle this, showed up.
In case of Feature change / Breaking change:
Describe the current behavior
N/A
Describe the new behavior
N/A
Screenshots (if appropriate):
N/A