plugin.video.youtube icon indicating copy to clipboard operation
plugin.video.youtube copied to clipboard

Unable to view activation code to sign in (updated)

Open netlexer opened this issue 6 years ago • 4 comments

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 avatar Mar 06 '19 12:03 netlexer

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

anxdpanic avatar Mar 10 '19 16:03 anxdpanic

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 avatar Mar 11 '19 19:03 netlexer

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 ;-))

netlexer avatar Mar 15 '19 14:03 netlexer

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.

anxdpanic avatar Mar 15 '19 16:03 anxdpanic