Unable to view activation code to sign in (updated)
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".
This was also reported in #164, hopefully have a chance this week to look into it further.
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
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 ;-))
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.