Open sanchomuzax opened 6 years ago
I have the same problem.... Done: Never mind, it works now. I think It needs some time for Google to update the ID.
Seems to work in 4.x and 5.0 beta 4.
Sorry for late reply... If the problem is not fixed yet, please comment here.
I think the creation of the required IDs is too complicated for me, or the help of the ID's creation to simple for me. I can't setup the plugin. 😐
I agree with you, the setup is very complicated. But, it is only way Google provides.
My client id like 123456789012-abcdefghijklmnopqrstuvwxyzabcdefg.apps.googleusercontent.com
.
So, please try to get such id in your env...
Same for me. Tried with 4.6.3 & 5.0.3. Created a client id with format 123456789012-abcdefghijklmnopqrstuvwxyzabcdefg.apps.googleusercontent.com but get "failed to initialize" on setup datasource. Testing with https://developers.google.com/apis-explorer does work. Any hints?
gapi.auth2.ExternallyVisibleError: gapi.auth2 has been initialized with different options. Consider calling gapi.auth2.getAuthInstance() instead of gapi.auth2.init(). at new uO (https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.de.gRfC7iKE0EM.O/m=auth2,client/rt=j/sv=1/d=1/ed=1/am=AQE/rs=AGLTcCMmT8P7LzlS4r4qH4nNZpt_5xS7Uw/cb=gapi.loaded_0:196:25) at Object._.hN [as init] (https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.de.gRfC7iKE0EM.O/m=auth2,client/rt=j/sv=1/d=1/ed=1/am=AQE/rs=AGLTcCMmT8P7LzlS4r4qH4nNZpt_5xS7Uw/cb=gapi.loaded_0:229:124) at callback (https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.de.gRfC7iKE0EM.O/m=auth2,client/rt=j/sv=1/d=1/ed=1/am=AQE/rs=AGLTcCMmT8P7LzlS4r4qH4nNZpt_5xS7Uw/cb=gapi.loaded_0:733:270) at Y (https://apis.google.com/js/api.js:11:166) at Z (https://apis.google.com/js/api.js:9:176) at https://apis.google.com/js/api.js:11:419 at X (https://apis.google.com/js/api.js:11:339) at Object.x.load (https://apis.google.com/js/api.js:11:399) at https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.de.gRfC7iKE0EM.O/m=auth2,client/rt=j/sv=1/d=1/ed=1/am=AQE/rs=AGLTcCMmT8P7LzlS4r4qH4nNZpt_5xS7Uw/cb=gapi.loaded_0:733:216 at new _.C (https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.de.gRfC7iKE0EM.O/m=auth2,client/rt=j/sv=1/d=1/ed=1/am=AQE/rs=AGLTcCMmT8P7LzlS4r4qH4nNZpt_5xS7Uw/cb=gapi.loaded_0:109:299)
Works now. Funny, but cleaning the complete browser history helped...
hmm, it's strange. I'll investigate it when I have a time...
Hey,
Any update on this issue ? I'm facing the same.
EDIT: Didnt notice chrome + extension were blocking cookies / popup that prevented me to login and to access the calendar. Works fine now.
+1
Having same problem Grafana v5.4.2 (commit: d812109)
En la version 6.4.1 pasa exactamente igual pero como se soluciona?
Same issue. Running Grafana as a Hassio Community Add-On, and get failed to initiate
immediately.
Same problem. Version 5.4.0
I have ID and when I put it to the datasource form it says: "failed to initialise".
Raspberry Pi 4B, Raspbian.
This app accesses user data and requires OAuth 2.0 credentials. Check the browser console for errors and do these extra steps to authorize against the calendar API:
Please follow Quickstart Step 1 to enable Google Calendar API and create new web application project. Copy the Client ID into the datasource config.
Next add Authorized Domain for OAuth 2.0 under Google Developer Console > APIs & Services > OAuth consent screen.
Finally put Grafana path into Authorized JavaScript Origins under Google Developer Console > Credentials > [your project name] > Authorized JavaScript Origins.
This may be the stupidest question but what domain am I supposed to add? The google developers console site warns you that i needs to be a verified public domain, and that you need to add it to the "Search Console"
Same goes for "Grafana Path", what path?
This app accesses user data and requires OAuth 2.0 credentials. Check the browser console for errors and do these extra steps to authorize against the calendar API:
Please follow Quickstart Step 1 to enable Google Calendar API and create new web application project. Copy the Client ID into the datasource config. Next add Authorized Domain for OAuth 2.0 under Google Developer Console > APIs & Services > OAuth consent screen. Finally put Grafana path into Authorized JavaScript Origins under Google Developer Console > Credentials > [your project name] > Authorized JavaScript Origins.
Is it possible that this plugin doesn't work with the Grafana v4.x version?
If the formula of the ID is: xxxxxxxx@group.calendar.google.com
If the formula of the ID is xxxxxxxx only (the "Testing..." message doesn't changing, no pop-up window or odther form for Google auth page):
(I tested it on port 3000.)