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

Unable to view activation code to sign in (updated) #585

Open
netlexer opened this issue Mar 6, 2019 · 4 comments
Open

Unable to view activation code to sign in (updated) #585

netlexer opened this issue Mar 6, 2019 · 4 comments

Comments

@netlexer
Copy link

netlexer commented Mar 6, 2019

Every time I select Sign-In on youtube the small window with the init code is briefly displayed, but then it's immediately covered by the youtube settings window. There isn't enough time to see the code, thus I'm unable to sign in. This has been a problem for some time. This is the same whether I use the latest youtube plugin from the Kodi repo, or the latest from here. I've tried different skins and it's exactly the same. It's also the same on a new Kodi install, as well as one with several addons added. Kodi 18.1 Leia.

A brief error message is displayed [extracted from the log]:

ERROR: [plugin.video.youtube] Requesting access token: Code: |400| JSON: |{u'error_description': u'Credentials in post body and basic Authorization header do not match', u'error': u'invalid_request'}|

ERROR: [plugin.video.youtube] LoginException: [400] invalid_request: Credentials in post body and basic Authorization header do not match

I'm using fully updated Arch Linux, running under Plasma 5.

Here's an updated, full debug log: http://dpaste.com/1NTT2C5

If I click on any other youtube link [eg Popular Right Now], I get a popup saying "Youtube: forbidden".

@netlexer netlexer changed the title Unable to view activation code to sign in Unable to view activation code to sign in (updated) Mar 8, 2019
@anxdpanic
Copy link
Collaborator

This was also reported in #164, hopefully have a chance this week to look into it further.

@netlexer
Copy link
Author

Thanks. Any help much appreciated. I'm only an occasional user of Kodi (though I'm starting to use it more now), which is why I didn't report this earlier, but it's been an issue for quite a while. I agree with you, this seems to be the same as (or at least very similar to) #164.

I created a bare-bones Kodi, with very few addons, repeated the above, and the results are exactly the same. Here's an updated debug log: http://dpaste.com/3PNRJQ4

@netlexer
Copy link
Author

netlexer commented Mar 15, 2019

I finally got it to work, by copying my complete ~/.kodi directory to another account on this laptop and running it from that account. From there I'm now able to sign in to youtube! :-) It still doesn't work using my usual account.

The thing that really puzzles me is why. Is the youtube plugin susceptible to anything external to Kodi (e.g. environment vars)? Python libs I may have installed locally? I don't have PYTHONPATH set. I'd really like to figure this one out (I like a challenge ;-))

@anxdpanic
Copy link
Collaborator

iirc linux uses system packages when available, not sure the full extent of that myself.
Not being able to reproduce, and the little information regarding the error w/ google/youtube it's been difficult to narrow down a cause.
The error reads like the headers or post body of that request was altered at some point.

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

2 participants