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

Authentication failed #37

Closed
dsgithub2k opened this issue Oct 19, 2020 · 53 comments
Closed

Authentication failed #37

dsgithub2k opened this issue Oct 19, 2020 · 53 comments

Comments

@dsgithub2k
Copy link

Having issues lately using F1tv kodi add on . Unable to login with the Account Authentication failed. any help? I've checked the login and is exactly the one I use in other devices. Running Kodi on a Shield Pro.

@Calimerorulez
Copy link

Same here on Kodi on a Chromecast with Google TV...

@joeyberkovitz
Copy link

Seems that authentication API endpoint changed without any other significant changes. The fix for me was to make the following change in AccountManager.py

__ACCOUNT_API__='https://api.formula1.com/v2/account/'
__ACCOUNT_CREATE_SESSION__=__ACCOUNT_API__+'subscriber/authenticate/by-password'

@bbsan2k
Copy link
Owner

bbsan2k commented Oct 22, 2020

Interesting - so they finally deprecated v1 API... I‘ll try to provide the fix in an update tomorrow.
Thx @joeyberkovitz

@dsgithub2k
Copy link
Author

Seems that authentication API endpoint changed without any other significant changes. The fix for me was to make the following change in AccountManager.py

__ACCOUNT_API__='https://api.formula1.com/v2/account/'
__ACCOUNT_CREATE_SESSION__=__ACCOUNT_API__+'subscriber/authenticate/by-password'

and how I go about changing that? or is it something only the developer can do it?

@dsgithub2k
Copy link
Author

Interesting - so they finally deprecated v1 API... I‘ll try to provide the fix in an update tomorrow.
Thx @joeyberkovitz

That would be great!! especially we have Portuguese GP this weekend. Your app is fantastic by the way, thanks for doing this

@dsgithub2k
Copy link
Author

Same here on Kodi on a Chromecast with Google TV...

Hopefully we will get an update soon...

@bbsan2k
Copy link
Owner

bbsan2k commented Oct 22, 2020

Is anyone willing to try test release 0.1.5?
It fixes the Account Issue (on my platform - macOS, Kodi 18.8, Germany) but due to localized settings it may fail for others.
Please test and report!
Once this is done I'll deploy on the auto update repo.

@joeyberkovitz
Copy link

I verified that the test release works for me - windows and U.S.

@dsgithub2k
Copy link
Author

Is anyone willing to try test release 0.1.5?
It fixes the Account Issue (on my platform - macOS, Kodi 18.8, Germany) but due to localized settings it may fail for others.
Please test and report!
Once this is done I'll deploy on the auto update repo.

I can### where do I download the 1.5 version?

@Calimerorulez
Copy link

I downloaded the 0.1.5 zip, but it says 0.1.4. It still crashes (in Holland), but I will experiment further.

@dsgithub2k
Copy link
Author

Anywhere I can download the 0.1.5 zip here to test it?

@Calimerorulez
Copy link

Anywhere I can download the 0.1.5 zip here to test it?

https://github.com/bbsan2k/plugin.video.f1tv/archive/0.1.5.zip

@joeyberkovitz
Copy link

@bbsan2k I think you forgot to bump the version on the test release, so the upgrade doesn't go through without an uninstall first.

@dsgithub2k
Copy link
Author

uninstall current version, installed 0.1.5 test version. Authentication failed as well. Using Kodi on a Shield TV Pro.
It does says the version is 0.1.4 as mentioned by @Calimerorulez

@bbsan2k
Copy link
Owner

bbsan2k commented Oct 23, 2020

Sorry, Seems I forgot to update the version in addon.xml.

Please try again:
https://github.com/bbsan2k/plugin.video.f1tv/releases/tag/0.1.5

The only change is the version string, so if you previously uninstalled 0.1.4 and reinstalled yesterdays' package there is no change for you.

Additionally make sure:

  • your are not on VPN
  • Your device list on f1tv is not maxed out

@dsgithub2k
Copy link
Author

Sorry, Seems I forgot to update the version in addon.xml.

Please try again:
https://github.com/bbsan2k/plugin.video.f1tv/releases/tag/0.1.5

The only change is the version string, so if you previously uninstalled 0.1.4 and reinstalled yesterdays' package there is no change for you.

Additionally make sure:

  • your are not on VPN
  • Your device list on f1tv is not maxed out

Hi @bbsan2k ,
So I uninstalled version 0.1.4, restarted Kodi, installed the new test 0.1.5 version and now it gives me a F1tv kodi plugin error message. Not on VPN and account on F1 is not maxed out, actually I deleted all devices for this test. Reviewed log error on direct texture file loading failed, error getting plugin://plugin.video.f1tv/
error:control 55 in window 10025 has been asked to focus, but it can't

Uninstalled and installed problem persists.

@bbsan2k
Copy link
Owner

bbsan2k commented Oct 23, 2020

@dsgithub2k Can you activate debug in the plugin and the log as well and provide the log output?

@LTKort
Copy link
Contributor

LTKort commented Oct 23, 2020

Hi @bbsan2k , I got the following:

2020-10-23 12:15:31.219 T:3011182608 ERROR: Control 55 in window 10025 has been asked to focus, but it can't 2020-10-23 12:15:31.693 T:2284041072 ERROR: en 2020-10-23 12:15:31.694 T:2284041072 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <class 'locale.Error'> Error Contents: unsupported locale setting Traceback (most recent call last): File "/storage/.kodi/addons/plugin.video.f1tv/main.py", line 14, in <module> plugin.run() File "/storage/.kodi/addons/plugin.video.f1tv/resources/lib/plugin.py", line 530, in run router(sys.argv[2][1:]) File "/storage/.kodi/addons/plugin.video.f1tv/resources/lib/plugin.py", line 504, in router get_mainpage() File "/storage/.kodi/addons/plugin.video.f1tv/resources/lib/plugin.py", line 41, in get_mainpage event_uid = _api_manager.getLiveEvent() File "/storage/.kodi/addons/plugin.video.f1tv/resources/lib/F1TVParser/F1TV_Minimal_API.py", line 134, in getLiveEvent elements = self.callAPI("home")['objects'][0]['items'] File "/storage/.kodi/addons/plugin.video.f1tv/resources/lib/F1TVParser/F1TV_Minimal_API.py", line 47, in callAPI locale.setlocale(locale.LC_ALL, 'en_US') File "/usr/lib/python2.7/locale.py", line 581, in setlocale Error: unsupported locale setting -->End of Python script error report<-- 2020-10-23 12:15:31.807 T:2444809072 ERROR: GetDirectory - Error getting plugin://plugin.video.f1tv/ 2020-10-23 12:15:31.808 T:3011182608 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.f1tv/) failed

@LTKort
Copy link
Contributor

LTKort commented Oct 23, 2020

@bbsan2k I Fixed it by commenting line #47 in F1TV_Minimal_API.py see #38

@Calimerorulez
Copy link

Same here. I can’t copy/paste the log right now, but:

ValueError: _locale emulation only supports “C” locale.

And: Control 55 in window 10025 has been asked to focus but it can’t

Error: nl

Etc.

@bbsan2k
Copy link
Owner

bbsan2k commented Oct 23, 2020

@LTKort The problem is, that this only fixes the problem on Raspi and some other platforms, while on Mac and Windows it breaks functionality. I guess it has something to do with the way the cache lib is expecting the Date formats

Edit:
Merged for now. Please test 0.1.5.1

@dennis1804
Copy link

dennis1804 commented Oct 23, 2020

Thanks, 0.1.5.1 seems to work for android tv and Windows 😀
just like the comment below the current event is indeed missing.

@cmiguelcabral
Copy link

V0.1.5.1 working here on LibreElec (RPi3)
Just the current event is not appearing on the front page.

@Calimerorulez
Copy link

0.1.5.1 working for me too on Kodi/Chromecast with Google TV.

Thanks all for the quick debugging and fixes!

@doormalena
Copy link

0.1.5.1 works on Windows 10 x64 (after manually installing it, repository does not know this version). Watching the Portugal P1 replay now.

It seems the navigation is changed though since the last release published in the repository, I can only find the current race via 2020 > Portugal. Not a blocker, just something to know.

@Calimerorulez
Copy link

Calimerorulez commented Oct 23, 2020

It seems the navigation is changed though since the last release published in the repository, I can only find the current race via 2020 > Portugal. Not a blocker, just something to know.

Same here

@dsgithub2k
Copy link
Author

0.1.5.1 works on Windows 10 x64 (after manually installing it, repository does not know this version). Watching the Portugal P1 replay now.

It seems the navigation is changed though since the last release published in the repository, I can only find the current race via 2020 > Portugal. Not a blocker, just something to know.

I second that. Version 0.1.5.1 working for me on the Shield Tv Pro no error. The Navigational is changed, not sure if we'll be able to watch the live event? Seems to show only past events.

@cmiguelcabral
Copy link

0.1.5.1 works on Windows 10 x64 (after manually installing it, repository does not know this version). Watching the Portugal P1 replay now.
It seems the navigation is changed though since the last release published in the repository, I can only find the current race via 2020 > Portugal. Not a blocker, just something to know.

I second that. Version 0.1.5.1 working for me on the Shield Tv Pro no error. The Navigational is changed, not sure if we'll be able to watch the live event? Seems to show only past events.

It's playing live events, I watched P2 there.
Just the Current Event is not showing up on Root Page.

The update worked here, I installed this version having the previews installed and it showed "Updated..."

@dsgithub2k
Copy link
Author

I concur with the above. Watched P2 today as well, although I joined in the second half of the live event. does the live event link appears right before is going to start?

@Calimerorulez
Copy link

Well does anyone know how to watch live?

@bbsan2k
Copy link
Owner

bbsan2k commented Oct 24, 2020

Well does anyone know how to watch live?

Navigate to Portugal 2020 manually and the stream will appear once available.
Unfortunately it seems, live streaming only works on certain platforms - not including macOS, so it’s hard for me to debug.

@doormalena
Copy link

On Windows, the live stream works OK at the moment. Watching quali right now using 0.1.6 version.

@dsgithub2k
Copy link
Author

App is working beautifully! Would like to thank the developer for making this happen Thank you @bbsan2k!

@adityakalra16
Copy link

Hey there. Installed the newest version, and yet still unable to play the race or quali videos.
the highlights are playing but the rest are not.
Account details are correct and devices are all cleared, still, getting error in playing. Also not running any vpn.
Should i be running in case F1TV is not supported in my country? i tried after running vpn, it just doesnt open any session videos but at the same time no error logs. Please help! thank you

@bbsan2k
Copy link
Owner

bbsan2k commented Nov 5, 2020

Hey there. Installed the newest version, and yet still unable to play the race or quali videos.
the highlights are playing but the rest are not.
Account details are correct and devices are all cleared, still, getting error in playing. Also not running any vpn.
Should i be running in case F1TV is not supported in my country? i tried after running vpn, it just doesnt open any session videos but at the same time no error logs. Please help! thank you

Hey,
Which device/Kodi version is used?

@adityakalra16
Copy link

Hey! Thanks for the quick reply,
Currently using a Pi4 with LibreElec Kodi (not sure which version but the latest(fresh install today)

@Calimerorulez
Copy link

Same here. The only error I get is:

ERROR: Account Authentication failed.

Using Kodi 18.9 on a Chromecast Google TV. Couple of days ago, it was working fine.

@dsgithub2k
Copy link
Author

I'm having no issues here. on Kodi/Nvidia Shield F1TV version 0.1.5

@Calimerorulez
Copy link

Still not working :'(

@doormalena
Copy link

doormalena commented Nov 13, 2020

Still not working :'(

Having the same issue today with 0.1.6 when wanting to watch FP1. Previous race weekend it worked fine.

Using the official app with the same credentials is working.
Location: Netherlands

@dennis1804
Copy link

according to: SoMuchForSubtlety/f1viewer#111.
it seems like the f1tv api is blocking bot calls because they can't execute javascript, which might be the reason why most of us can login.

@doormalena
Copy link

Interesting. According to further down in that thread it mentions its related to the user agent. See SoMuchForSubtlety/f1viewer#111 (comment)

@bbsan2k
Copy link
Owner

bbsan2k commented Nov 14, 2020

It is really difficult to reproduce this issue on my side. On my Mac, Live Events are not working - but they never have, so this is nothing "new".
Can somebody please try the latest version in develop and check if issues are resolved with this?
I added the User-Agent as "RaceControl" - and at least on my Raspberry Pi LibreElec it's working like this...

EDIT: Find Prelease 0.1.6.1 here @doormalena @dennis1804 @Calimerorulez

@dennis1804
Copy link

dennis1804 commented Nov 14, 2020

@bbsan2k, seems to work. (debain, ubuntu 20.04) however i am getting some errors when i try to watch the practice 3 of the turkish gp. other practices starting nicely from the beginning.

11:08:24.053 T:140504246376192 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
11:08:30.344 T:140505669158656   ERROR: en
11:08:30.527 T:140505669158656   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: 'NoneType' object has no attribute '__getitem__'
                                            Traceback (most recent call last):
                                              File "/home/dennis/.kodi/addons/plugin.video.f1tv/main.py", line 14, in <module>
                                                plugin.run()
                                              File "/home/dennis/.kodi/addons/plugin.video.f1tv/resources/lib/plugin.py", line 530, in run
                                                router(sys.argv[2][1:])
                                              File "/home/dennis/.kodi/addons/plugin.video.f1tv/resources/lib/plugin.py", line 495, in router
                                                playChannel(params['channel_url'])
                                              File "/home/dennis/.kodi/addons/plugin.video.f1tv/resources/lib/plugin.py", line 455, in playChannel
                                                stream_url= _api_manager.getChannelStream(channel_url=channel_url)
                                              File "/home/dennis/.kodi/addons/plugin.video.f1tv/resources/lib/F1TVParser/F1TV_Minimal_API.py", line 120, in getChannelStream
                                                return viewing_json["tokenised_url"]
                                            TypeError: 'NoneType' object has no attribute '__getitem__'
                                            -->End of Python script error report<--
11:08:30.587 T:140506978283456   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.f1tv/?action=playChannel&channel_url=%2Fapi%2Fchannels%2Fchan_7e1d189e283d469d81e07ba49dd11e80%2F]

@bbsan2k
Copy link
Owner

bbsan2k commented Nov 14, 2020

@dennis1804 This is probably related to the stream that has just finished, while not being available as recording yet... Probably you just need to wait a bit.
While still this is annoying (I agree) I currently don't have much time to invest into the plugin... I'll have some vacation before christmas, so maybe I can spend some time on making this whole thing a bit more robust...

@dennis1804
Copy link

yeah that's probably the issue, works now starting from the beginning. (also on android tv) thanks for making the time to fix these issues. 👍

@merson316
Copy link

Can confirm. 0.1.6.1 has fixed it for me as well.

@Calimerorulez
Copy link

@bbsan2k

Works OK for me too :) Thanks! (I was too late for checking live streaming though).

@doormalena
Copy link

It is really difficult to reproduce this issue on my side. On my Mac, Live Events are not working - but they never have, so this is nothing "new".
Can somebody please try the latest version in develop and check if issues are resolved with this?
I added the User-Agent as "RaceControl" - and at least on my Raspberry Pi LibreElec it's working like this...

EDIT: Find Prelease 0.1.6.1 here @doormalena @dennis1804 @Calimerorulez

Just updated. Works fine with 0.1.6.1. Thanks for the quick fix.

@cmiguelcabral
Copy link

Just watched qualify live on version 1.6.0, everything good.

@Metalfreak82
Copy link

Metalfreak82 commented Nov 14, 2020

Had the same problem, there was a character in my password that didn't work I guess. Changed my password and can login now. Kodi on Android TV.

So if you have trouble logging in, try that.

@bjorn1981
Copy link

@bbsan2k 0.1.6.1 working on Kodi 18.8 Libreelec generic x86_64 from the Netherlands.

@bbsan2k bbsan2k closed this as completed Nov 19, 2020
@bbsan2k
Copy link
Owner

bbsan2k commented Nov 19, 2020

Closed for now... Please open new issue if authentication starts failing again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests