Comments (10)
Can confirm this is an issue and should affect everyone soon. All was working fine until one day last week I got a "key expired" error. Got sick of fiddling with things so started out fresh - fresh install, new key/api etc. I can setup the app without API and it works fine for a while before the "Daily Quota" BS kicks in. But when I input my API creds and sign in again I get a 401 error inputing the first /activate code.
It would appear something has changed on Google's side of things....
from plugin.video.youtube.
from plugin.video.youtube.
@jdf76 Confirmed 5.4.1 last week and 5.4.2 today. I'll try a full reset once more to eliminate anything else. One thing I've noticed is the API Client ID is something like:
123456789-987654321abcdefg.apps.googleusercontent.com
But the app trims it down to:
123456789-987654321abcdefg
I'm sure that's intended but I'm just mentioning it.
In relation to what OP was saying about the API Secret having a special/odd character:
Mine is something like "abc123-" with a noticeable "-" (dash) at the end. No idea if that's intentional or not.
EDIT: Just did a fresh install of the app, input API creds verbatim, and reproduced the same issue. It's clear the app is running into an error with google's API.
Here's some pics if you think I'm crazy: http://imgur.com/a/O0Heh
from plugin.video.youtube.
Logfile is here: http://paste.ubuntu.com/25310399/
The juicy part is here:
------ Window Init (DialogBusy.xml) ------
01:12:30.378 T:1256190880 DEBUG: [plugin.video.youtube] Using API key set: own
01:12:30.504 T:1256190880 DEBUG: [plugin.video.youtube] Starting Kodion framework by bromix...
01:12:30.558 T:1256190880 NOTICE: [plugin.video.youtube] Running: YouTube (5.4.2) on Krypton (Kodi-17.3) with Python 2.7.13
01:12:30.558 T:1256190880 DEBUG: [plugin.video.youtube] Path: "/sign/in/
01:12:30.558 T:1256190880 DEBUG: [plugin.video.youtube] Params: "{}"
01:12:30.596 T:1256190880 DEBUG: [plugin.video.youtube] Sign-in: Dual login required |True|
01:12:30.675 T:1962036176 DEBUG: ------ Window Init (DialogConfirm.xml) ------
01:12:30.675 T:1962036176 INFO: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
01:12:31.650 T:1816130464 DEBUG: BUTTON [ 0 ] on "Xbox 360 Wireless Receiver" pressed
01:12:31.650 T:1816130464 DEBUG: FEATURE [ a ] on game.controller.default pressed
01:12:31.798 T:1816130464 DEBUG: BUTTON [ 0 ] on "Xbox 360 Wireless Receiver" released
01:12:31.798 T:1816130464 DEBUG: FEATURE [ a ] on game.controller.default released
01:12:31.924 T:1962036176 DEBUG: ------ Window Deinit (DialogConfirm.xml) ------
01:12:31.972 T:1256190880 DEBUG: [plugin.video.youtube] Selecting YouTube config "All"
01:12:31.973 T:1256190880 DEBUG: [plugin.video.youtube] User is not logged in
01:12:32.765 T:1256190880 DEBUG: DialogProgress::Open called
01:12:32.765 T:1256190880 DEBUG: ------ Window Init (DialogConfirm.xml) ------
01:12:32.765 T:1256190880 INFO: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
01:12:44.073 T:1256190880 DEBUG: [plugin.video.youtube] YouTube-TV Login: Access Token |True| Refresh Token |True| Expires |1502691163.99|
01:12:44.098 T:1256190880 DEBUG: [plugin.video.youtube] Selecting YouTube config "All"
01:12:44.099 T:1256190880 DEBUG: [plugin.video.youtube] User is not logged in
01:12:44.418 T:1962036176 DEBUG: ------ Window Deinit (DialogConfirm.xml) ------
01:12:44.624 T:1256190880 ERROR: [plugin.video.youtube] YouTube: LoginException: Login Failed: Code 401
01:12:44.626 T:1962036176 DEBUG: ------ Window Init (DialogAddonSettings.xml) ------
01:12:44.627 T:1962036176 INFO: Loading skin file: DialogAddonSettings.xml, load type: KEEP_IN_MEMORY
01:12:44.660 T:1962036176 DEBUG: ------ Window Init (DialogNotification.xml) ------
01:12:46.657 T:1816130464 DEBUG: BUTTON [ 12 ] on "Xbox 360 Wireless Receiver" pressed
from plugin.video.youtube.
I've been unable to reproduce this and the logs don't really have much information in that area.
There is only one place that the add-on does a simple strip() to remove whitespace but this should not mangle the string as described. (.apps.googleusercontent.com is also intentionally removed)
I've made a PR changing strip() to an alternate method, would appreciate if either of you can test and confirm if the changes resolve it for you since you are able to reproduce the behaviour.
The PR is #113 , the specific changes are in commit 7a41126
Thanks
from plugin.video.youtube.
I can confirm this is happening to me.
I recently decided I needed to use my own API keys. Went thru the setup, and when I try to log back in I get this exception. Search appears to work fine, so I know my keys are good. Currently running v5.4.5 of the add-on with Kodi Krypton (LibreElec)
from plugin.video.youtube.
Still unable to reproduce, added extra checks to try to catch any mangling that may be happening.
064a66a
from plugin.video.youtube.
Getting same login issue. Personal API seems to be working when searching, and when it is set to that I cannot login. Using youtube.com/activate . 'Youtube LoginExeption Error Code: 401'. The code is accepted on youtube/activate and the issue only occurs when trying to login.
On a side note, how do you login with settings.xml? I havent quite worked out where to put my credentials there yet.
from plugin.video.youtube.
[Bingo:] (https://stackoverflow.com/questions/27483674/youtube-api-v3-shows-access-not-configured)
You need to delete the current client key, disable the YT data API, re-enable it, then create a new client key. Confirmed working meow. Not sure what made it stop one day - methinks YT stopped/started my API and that invalidated my key. Confirmed is working fine. Meow.
from plugin.video.youtube.
Key stripping methods have been changed, error messages in this area are improved, and api keys can be edited from web browser in coming v6
if when signing in you get -- invalid_client : oauth client not found -- the client id is incorrect.
if when signing in you get -- invalid_client : unauthorized -- the client secret is incorrect.
Please re-open if still having this issue.
from plugin.video.youtube.
Related Issues (20)
- [request] Add reset access manager to instructions
- No stream available when playing any video HOT 3
- [Request] Add back icon HOT 4
- progress icons are not shown when navigating back to previously viewed pages HOT 6
- No Steams Found again HOT 13
- this line is breaking on unicode strings HOT 2
- Invalid URL 'http://': No host supplied HOT 1
- Repository moved: https://github.com/anxdpanic/plugin.video.youtube
- Error (kodi.log) HOT 2
- youtube plugin.video not working HOT 1
- No subscriptions HOT 5
- 为啥这个不可选了 HOT 1
- Unable to save watch later ID HOT 1
- Request
- Randomly "Permanent failure" appears on kodi.log..............it's someone have recently obtain a similar issue ?? How i can fix ?
- v6.8.3: No streams found HOT 1
- Web interface response is 501 HOT 1
- Plugin does not work (with API key) via search function, only with live streams HOT 3
- buffer problems in nearly each video HOT 5
- Buffering problem came back? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugin.video.youtube.