Google APIs Client Library for JS 'Access Not Configured' error

4.7k views Asked by At

I am trying to get to work a sample described here (with Calendar API):

http://googleappsdeveloper.blogspot.hu/2011/12/using-new-js-library-to-unlock-power-of.html

The code itself runs properly, but I always get an error message (pasted from JSON):

"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."

Of course I have enabled the Calendar API for my project, I have set the api and the client keys too.

I would really appreciate some help. Thank you! :)

3

There are 3 answers

4
SGC On

"Access not configured" error is thrown when the project is not configured to access THIS API. Can you check whether Calendar API is enabled to this project(which you are getting error)?

Also, this error can happen due to the below reasons:

  1. The project which is throwing error has been blocked due to abuse.

  2. The project has been marked for deletion.

Here is the link for documentation on the standard error messages.

0
nimesulide On

The problem seems solved. As it seems, the sample source code was wrong at some points. You should better use google's own sample codes to try out APIs.

0
Thomas On

I got this error on Android using GoogleAuthUtil to get the token. Eventually I realised that I was compiling on a different machine with a different SHA1 certificate.

To fix it I added another Android ClientID in the google developers console and also needed to call GoogleAuthUtil.invalidateToken