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

Addon open/login fails with KeyError 'lolomo' #701

Closed
1 of 8 tasks
pkscout opened this issue Jun 17, 2020 · 68 comments
Closed
1 of 8 tasks

Addon open/login fails with KeyError 'lolomo' #701

pkscout opened this issue Jun 17, 2020 · 68 comments
Labels
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

@pkscout
Copy link

pkscout commented Jun 17, 2020

Bug report

Your Environment

  • Netflix add-on version: 1.4.1
  • Operating system version/name: MacOSX
  • Device model:

Used Operating system:

  • Android
  • iOS
  • Linux
  • OSX
  • Raspberry-Pi
  • Windows

Describe the bug

Login fails with KeyError.

https://paste.kodi.tv/awisikaboh.kodi

Expected behavior

Expect to be able to login.

Actual behavior

I get an error dialog box.

Steps to reproduce the behavior

  1. Install addon
  2. Run addon
  3. Try and login

Possible fix

Debug log

The debug log can be found from this link:

Additional context or screenshots (if appropriate)

Installation

  • I'm using other Netflix Repo
  • I'm using a different source

Other information

Screenshots

@oss001
Copy link

oss001 commented Jun 17, 2020

Started having the same issue today. Netflix plugin Version 1.4.1 running on Linux Elementary OS, Kodi 18.7.

@spaghetus
Copy link

spaghetus commented Jun 17, 2020

Also having this issue on a Pi 4 running LibreELEC and version 1.4.1 of this addon that was first installed yesterday and working earlier today.

I also got an error that said u'lolomo' at one point but I haven't been able to replicate it, and I'm unsure if it's related.

@pkscout
Copy link
Author

pkscout commented Jun 17, 2020

I'm not sure where the data for this check is gotten, but I was able to get the addon to load again by bypassing the isLocoSupported check in websites.py. Specifically line 105 I changed:

if user_data.get('isLocoSupported'):

to

if True:

That forces the added to use loco instead of lolomo (whatever that means). At least for me that allows the addon to load as normal. Unfortunately after that nothing plays, so whatever the issue is, it's deeper in Netflix.

@Axeinator
Copy link

Same here, OSMC, Kodi 18.7, Netflix 1.4.1

@wagnerch
Copy link
Contributor

wagnerch commented Jun 17, 2020

#701 (comment)

@Axeinator
Copy link

./resources/lib/services/nfsession/nfsession_requests.py
And in ./resources/lib/api/website.py:

What is the path to these on Linux (OSMC, Pi 3B+)?

@wagnerch
Copy link
Contributor

Likely in your /home/osmc/.kodi folder, you can use find to see.

osmc@osmc:~$ find /home/osmc -name website.py
/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/api/website.py

I haven't tried it on my OSMC box, using Windows at the moment.

@pkscout
Copy link
Author

pkscout commented Jun 17, 2020

It might be the issue is just isLocoSupported was removed, so maybe the hack is to force a value to false. Yeah it appears this will work as well:

in ./resources/lib/api/website.py:
before line 104 add:
user_data['isLocoSupported'] = 'false' # ADD LINE
g.LOCAL_DB.set_value('is_loco_supported', user_data.get('isLocoSupported'), TABLE_SESSION)
if user_data.get('isLocoSupported'):

That fixed the KeyError on my Mac, but not playback. On my OSMC device it does seem to work now (although in my brief tests I can only get 540p streams - I'll look at that next). Now that I think about it, Netflix has never worked on my Mac.

@wagnerch
Copy link
Contributor

wagnerch commented Jun 17, 2020

Yeah 540p is another issue, seems to only affect ARM devices and it something on the Netflix end.
See #655 for more on the 540p problem.

@npmstart-pray
Copy link

npmstart-pray commented Jun 17, 2020

also happening on my RasPi4 running current xbian with addon v1.4.1 in kodi 18.7
the WideVine update yesterday wouldn't have anything to do with this, would it?

@TheSurf3r
Copy link

Also happening on my Raspberry Pi 3 B with LE9.2 and on PC with Kodi 18.7:
image

@RJ3
Copy link

RJ3 commented Jun 18, 2020

KeyError with Pi4 on LibreELEC 9.2.1.
Plugin version 1.4.1

@juandeargentina
Copy link

Same error here. Windows 10 Kodi Leia. Working fine with no changes yesterday.

@Xaque8787
Copy link

Same issue on pi 3 with both LibreELEC and osmc as OS. Got it working by reverting to here LAva version 0.16.1 on LibreELEC, guess I will run with that until this gets fixed

@npmstart-pray
Copy link

It might be the issue is just isLocoSupported was removed, so maybe the hack is to force a value to false. Yeah it appears this will work as well:

in ./resources/lib/api/website.py:
before line 104 add:
user_data['isLocoSupported'] = 'false' # ADD LINE
g.LOCAL_DB.set_value('is_loco_supported', user_data.get('isLocoSupported'), TABLE_SESSION)
if user_data.get('isLocoSupported'):

this worked for me. Thank you.

@Axeinator
Copy link

I'm not sure where the data for this check is gotten, but I was able to get the addon to load again by bypassing the isLocoSupported check in websites.py. Specifically line 105 I changed:

if user_data.get('isLocoSupported'):

to

if True:

That forces the added to use loco instead of lolomo (whatever that means). At least for me that allows the addon to load as normal. Unfortunately after that nothing plays, so whatever the issue is, it's deeper in Netflix.

It might be the issue is just isLocoSupported was removed, so maybe the hack is to force a value to false. Yeah it appears this will work as well:

in ./resources/lib/api/website.py:
before line 104 add:
user_data['isLocoSupported'] = 'false' # ADD LINE
g.LOCAL_DB.set_value('is_loco_supported', user_data.get('isLocoSupported'), TABLE_SESSION)
if user_data.get('isLocoSupported'):

Yeah, looks like neither of those are working for me, hopefully we get an update fixing this soon. I'm running OSMC, Rpi 3B+, Kodi 18.7.

@CastagnaIT
Copy link
Owner

@pkscout you have not follow the instruction to get a right log
i need a new log

Repository owner deleted a comment from maurerr Jun 18, 2020
@CastagnaIT
Copy link
Owner

@maurerr follow the rules or all your post will be banned

@CastagnaIT
Copy link
Owner

well, seem that today netflix roll out the website changes also to my country,
i will check better what changes is needed

@jeff2900
Copy link

jeff2900 commented Jun 18, 2020

Same issue for me.
Rollback version 1.1.1 is ok under windows 10 and android 9.0.

@CastagnaIT CastagnaIT added the Triage: Confirmed Issue has been reproduced by the add-on maintainers label Jun 18, 2020
@stevenhoving
Copy link

stevenhoving commented Jun 18, 2020

I can confirm that the plugin loads and functions correctly when changing line 105 to if True:
If there is anything I can do @CastagnaIT just gimme a shout.

@enrique131
Copy link

I'm not sure where the data for this check is gotten, but I was able to get the addon to load again by bypassing the isLocoSupported check in websites.py. Specifically line 105 I changed:

if user_data.get('isLocoSupported'):

to

if True:

That forces the added to use loco instead of lolomo (whatever that means). At least for me that allows the addon to load as normal. Unfortunately after that nothing plays, so whatever the issue is, it's deeper in Netflix.

this seems to work for me.
Thanks

@stevenhoving
Copy link

I advice people to wait for #703 to be merged and update the plugin. #703 resolves a bit more than just changing line number 105.

@CastagnaIT
Copy link
Owner

CastagnaIT commented Jun 18, 2020

Temporary update fix

I have temporary fixed the error on app opening, but i think that netflix will make Lolomo lists deprecated, the signals are there.

This means that in the next few days or weeks (...when netflix will change...) also the main menu will be completely non-working and also other menu lists.

More extensive modifications are required, i will be performing some tests in the next days to understand better way to get the main menu

I attach a temporary fix but WARNING:

  • Can happen that raise unexpected errors
  • If you use "Sync of watched status with netflix" can happen that stop working or raise errors

Kodi 18.x: plugin.video.netflix_1.4.1_20200618_t1.zip
Kodi 19.x: plugin.video.netflix_1.4.1+matrix.1_20200618_t1.zip

@dranidis
Copy link

Thanks for the quick update!

I installed the fix for Kodi18.x.
Now I can enter (after logging in Netflix) and see my profile and lists but when I play any movie I get the following error:
Playback error: Email or password is incorrect
and it logs me out (need to log in again and still does not work).

Debug log: http://ix.io/2pum

@dfdario
Copy link

dfdario commented Jun 18, 2020

Great work. WAF restored! Thanks

@stevenhoving

This comment has been minimized.

@Froleatric

This comment has been minimized.

@CastagnaIT
Copy link
Owner

I'm happy that the temporary fix works,
but this is not a forum where each one can talk freely, this is a development section

therefore post not related to the problem will be moderated
to give space to those who really have problems,
thanks to all

@CastagnaIT CastagnaIT changed the title Addon Fails at Login with KeyError Addon open/login fails with KeyError 'lolomo' Jun 19, 2020
@CastagnaIT
Copy link
Owner

Thanks for the quick update!

I installed the fix for Kodi18.x.
Now I can enter (after logging in Netflix) and see my profile and lists but when I play any movie I get the following error:
Playback error: Email or password is incorrect
and it logs me out (need to log in again and still does not work).

Debug log: http://ix.io/2pum

This problem is not related to this issue,
You can try follow instruction on wiki:
https://github.com/CastagnaIT/plugin.video.netflix/wiki/FAQ-%28Errors%29#email-or-password-is-incorrect

or also follow the issue thread already opened with title:
Can't login on Netflix plugin - Incorrect password

@ThomasPause
Copy link

ThomasPause commented Jun 19, 2020

Temporary update fix

I have temporary fixed the error on app opening, but i think that netflix will make Lolomo lists deprecated, the signals are there.

This means that in the next few days or weeks (...when netflix will change...) also the main menu will be completely non-working and also other menu lists.

More extensive modifications are required, i will be performing some tests in the next days to understand better way to get the main menu

I attach a temporary fix but WARNING:

* Can happen that raise unexpected errors

* If you use "Sync of watched status with netflix" can happen that stop working or raise errors

Kodi 18.x: plugin.video.netflix_1.4.1_20200618_t1.zip
Kodi 19.x: plugin.video.netflix_1.4.1+matrix.1_20200618_t1.zip

works nice for the moment, thx for your work!!
(Tested on kodi 18.6 raspberry pi)

@guillaume-lec
Copy link

Hey
Fix works perfectly on CoreELEC 9.2.3
Thanks a lot

@http-andres2122
Copy link

http-andres2122 commented Jun 20, 2020

the fix worked wonderfully, excellent work @CastagnaIT
My device raspberry pi 2+ Kodi version 18.6 Leia SO: Libreelec

@dranidis
Copy link

Thanks for the quick update!
I installed the fix for Kodi18.x.
Now I can enter (after logging in Netflix) and see my profile and lists but when I play any movie I get the following error:
Playback error: Email or password is incorrect
and it logs me out (need to log in again and still does not work).
Debug log: http://ix.io/2pum

This problem is not related to this issue,
You can try follow instruction on wiki:
https://github.com/CastagnaIT/plugin.video.netflix/wiki/FAQ-%28Errors%29#email-or-password-is-incorrect

or also follow the issue thread already opened with title:
Can't login on Netflix plugin - Incorrect password

Thanks for the reply.

I managed to fix the problem. It was not related to anything mentioned in the suggested thread, though.
I noticed that there was a trailing space at the end of my email. Although, it DID log me in correctly in my profile, when I started a movie it brought the error message. Removing the trailing space resolved the issue. Weird, though.

@CastagnaIT
Copy link
Owner

thanks for the info! i will check

@matthuo333

This comment has been minimized.

@Kinotaiyh
Copy link

Temporary update fix

I have temporary fixed the error on app opening, but i think that netflix will make Lolomo lists deprecated, the signals are there.

This means that in the next few days or weeks (...when netflix will change...) also the main menu will be completely non-working and also other menu lists.

More extensive modifications are required, i will be performing some tests in the next days to understand better way to get the main menu

I attach a temporary fix but WARNING:

  • Can happen that raise unexpected errors
  • If you use "Sync of watched status with netflix" can happen that stop working or raise errors

Kodi 18.x: plugin.video.netflix_1.4.1_20200618_t1.zip
Kodi 19.x: plugin.video.netflix_1.4.1+matrix.1_20200618_t1.zip

This is really help! Thank you, it solved my problem!

@ghost
Copy link

ghost commented Jun 20, 2020

This is to confirm that the hotfix works on Debian 10.4 with Kodi 18.6. Thank you for addressing the issue promptly.

@beatschubser
Copy link

Will the plugin still receive updates after installing the temporary fix?

@matthuo333

This comment has been minimized.

@jlckodi

This comment has been minimized.

@CastagnaIT CastagnaIT added the Resolution: Fixed Issue resolved by code change (on daily build or next release) label Jun 21, 2020
@CastagnaIT
Copy link
Owner

New add-on release is available

@eflukx
Copy link

eflukx commented Jun 21, 2020

@CastagnaIT Great to have a new release so fast! 💨 I know what you did this weekend.. ;) Plz. don't forget to close this issue 😉 (Just installed the patch, only then found out there was a new release)

@VaultDeveloper
Copy link

Thanks for your speed. 👍

@oss001
Copy link

oss001 commented Jun 22, 2020 via email

@rshpeley
Copy link

I tried to update via Kodi addons but didn't get your new release. How do I install your new release?

@Terseus
Copy link

Terseus commented Jun 22, 2020

Can confirm the version 1.5.0 is working, thank you!!

I tried to update via Kodi addons but didn't get your new release. How do I install your new release?

Looks like the channel isn't updated yet.

You can wait for the channel to be updated with the new release, or you can download the zip file from the releases tab and install the addon from the zip file.

@saba1970
Copy link

I can also confirm that version 1.5 has solved this issue. Everything is working fine again.
@CastagnaIT thanjk you very much !!!!

@adamhotep
Copy link

adamhotep commented Jun 22, 2020

@beatschubser wrote:

Will the plugin still receive updates after installing the temporary fix?

My system (Ubuntu 20.04 on amd64, Kodi 18.7 via team-xbmc PPA) successfully auto-updated to Netflix add-on version 1.5 from the manually-installed .zip update in this thread.

Everything looks good.
Thanks @CastagnaIT!

@rshpeley
Copy link

rshpeley commented Jun 23, 2020 via email

@jakey1995abc
Copy link

When can we expect a patch for Matrix (Kodi 19)?

@faliagas
Copy link

faliagas commented Jul 1, 2021

Hey
Fix works perfectly on CoreELEC 9.2.3
Thanks a lot

How did you apply the fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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
Development

No branches or pull requests