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
LoginException: [401] invalid_client: Invalid client type #157
Comments
This means there is an issue with your keys. Can't really be more specific, might be entered incorrectly or might require recreating keys. |
Thanks, for some strange reason my original API keys were allowing me to play content, but not to log in. I ended up having to re-create the keys. |
@anxdpanic is right -- Just making a new set of keys seems to fix this. |
I'm on my 4th set of keys with no luck. Same error. |
Usually it's a typo. To ensure no typos occur, the easiest way is to enter the keys via copy & paste: In Kodi Youtube Addon Settings:
With a web browser:
Here's a video tutorial on how to create a new key. This method worked for me. |
@Mentor1337 same here, its not working with known working set of keys |
Same... did a full reset of my media player and was messing around with settings, renaming files etc, and when came to install YouTube I was hit with this. Finally had to go and blow away everything online and recreate the project/api to get it working again. Finally when I was done and everything worked how I wanted, I formatted my SD card and reinstalled everything for a fresh start. Got to YouTube and right back to this error again. Blew away and recreated API stuff 3-4x and getting this error after my first verification attempt. Did exactly what I did yesterday and same deal. I did see something saying about maybe taking 5min-1h to work, so, will watch a movie and try again after. Not sure what changed but WOW this thing is finicky... use to do this all the time nice and easy, but this time it's been a struggle. |
Once you have working keys, keep a copy of |
I had the same issue. |
@betatester3016 Well, it ended up being a real PITA, since the local HTTP server would not even try to start, so I was unable to enter the API info that way. OSMC I was able to get the API page to start without issue, but using Libreelec, it shows listening IP's as 127.0.0.0 and 0.0.0.0. Even manually adding the device's IP did not broadcast the page, so I could not get it to work. @Michal-Szczepaniak However, I was able to get the API key to work. I had to take the app out of the testing branch and publish the app under OAuth Consent Screen. Not sure if it is a security measure or a setting on my account since others are able to use it while in the testing phase. There is also dual login; after verifying the device once, a second verification code appears, and you need to activate it a second time, and you should be good! To ensure no typos without HTTP, either use My Phone/Join to allow your phone and computer clipboards to sync or open Google Dev Console page on your phone and pull up your API info. Use Yatse app on your phone for controlling Kodi, and copy/paste the info in that way. |
Well... it's working. On a whim I did exactly what I did the last time and not sure why but worked. Basically uninstalled it, and installed 6.8.18 from zip. I used my PC to copy/paste the API over so absolutely no typos. FAIL. Then, I click update and let YouTube auto update to 6.8.20. Checked and API's were still there. So went into the verification and worked fine. So... yeah. I mean I tried waiting a few hours and still failed, blew away the project and recreated multiple times and failed. But both times I tried installing 6.8.18, adding API's, FAIL, then update to 6.8.20 through the Kodi repository, then trying verification again, WORKED. @betatester3016 ... I don't think I can. I am using CoreElec, which doesn't really have an OS. I'm not sure how to drop the file into the directory you mentioned. When I use to run Win7 with Kodi on PC, no problem, but I'm using an Android box now with an SD card that bypasses Android and (from my understanding) has the absolute bare minimum of Linux/Unix running, just enough to boot Kodi. |
@THRobinson75 nothing to do with CoreELEC, everything to do with where Kodi stores its files. Keep |
@betatester3016 ... So, if I have the file on USB, how do I copy it to where it needs to go within Kodi? Just through file manager? Will it overwrite files if in use? I don't play with Kodi much. I install it, link to my NAS and fight with YouTube. I don't even change the skins. 😅 Probably a lot of good stuff and add-ons but years and years ago when I started using it, so much of it was kinda flakey and of no use to me so just left it at essentially default settings. |
@THRobinson75 Like this. |
@Onezille |
I literally had selected TVs and it didn't change anything |
Only way it worked for me, and no idea why, was to
Again, no idea why it worked but I replicated this twice and both times it's the only way I could get things to authenticate. |
Yes and yes. |
The same solution worked for me. |
Didn't work for me. After second verification code it shows an error that the application is being tested and that only authorized testers can access it. If you require access, contact developer. |
Thanks, it has worked for me as well. |
My YouTube plugin is now working again but I didn't change anything from my attempts to get it working last night. Last night I renewed/replaced the "OAuth 2.0 Client ID" and "OAuth 2.0 Client Secret", AKA the "API Id" and "API Secret" in Kodi settings but it still didn't work. So I also renewed/replaced the "API Key" but it still didn't work and I gave up for the night. Tonight I didn't change anything and tried again and playing YouTube videos now works. Then I remembered that when I was renewing/replacing the ID, secret and key, one of them warned that it might not take effect for hours or even a day. Unfortunately I don't remember which and I'm not going to break it again. But maybe this could be the reason why others have reported getting it to work but not understanding what they did differently from other attempts that didn't work. |
@rpatterson - thanks for providing that insight. There are a few odd things that can occur with this whole process, will have to keep this one in mind too. |
Finally, works for me here are the steps:
|
So instead of just signing in via "Sign In" in the YouTube app on Kodi you first go to Google and make a fresh OAuth client in some way? Did I understand that correctly? If yes: could you point me to where? |
yes correct - go to https://console.cloud.google.com/ then to Dashboard then to API overview then credentials (on the left side) then create a new OAuth Client IDs (no need to delete the old one) and choose "TVs and Limited Input devices " as type. Once the set of keys are created copy paste into kodi youtube addon. |
Context
Please provide any relevant information about your setup
Expected Behavior
Clicking sign in should bring up a window to enter user credentials.
Current Behavior
Clicking sign in shows: LoginException: [401] invalid_client: Invalid client type.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Log
CoreELEC (arm):
http://ix.io/3qt3
LibreELEC (x86):
http://ix.io/3qtc
The text was updated successfully, but these errors were encountered: