Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Can't overcome this situation: created a project in the Google developers console they created "Client ID for web application" and "Key for server applications".

In the console requests have completed successfully, but when I send from the server I get the following error:

403: {
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "accessNotConfigured",
    "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
   }
  ],
  "code": 403,
  "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
 }
}

Parameters to construct the query checked.. the request goes on:

"https://www.googleapis.com/calendar/v3/freeBusy?key=my_key"
pass parameters: "{"items":[{"id":"[email protected]"}],"timeMax":"2014-04-09T00:00:00+01:00","timeMin":"2014-01-09T00:00:00+01:00","timeZone":"Europe\/Berlin"}"

Where can I see what the error is?

Whether in this help Billing (at the moment it is turned off "Billing is not enabled")?

========================== UPDATED: The problem was resolved so (like shamanism): I just created a new project in the google api, next tab "APIs&auth->Credentials" I added to the project "Client ID for web application", when you create immediately pointed out "Redirect URIs" when you create is automatically generated "Key for browser applications"that can work with any host). After these steps, I point to a website created settings and requests are.

To send requests to use drupal and modules: gauth and gcal (which uses http://code.google.com/p/google-api-php-client/).

like image 374
masdzen Avatar asked Jan 09 '14 12:01

masdzen


People also ask

How do I fix Google authorization error 403?

"code": 403, "message": "The user does not have sufficient permissions for file {fileId}." To fix this error, instruct the user to contact the file's owner and request edit access. You can also check user access levels in the metadata retrieved by files.

What is http error 403 in Google Drive?

This error is usually labeled as the http error 403. There may be several reasons why you are seeing this error message. It may be related to expired or cached browser cookies, a corrupted Google Drive download, and more. However, you are probably not interested in the causes of the issue at this point.

How do I fix Error 403 user limit exceeded?

Resolve a 403 error: User rate limit exceeded To fix this error, try to optimize your application code to make fewer requests or retry requests. For information on retrying requests, refer to Retry failed requests to resolve errors. For additional information on Gmail limits, refer to Usage limits.


2 Answers

I was getting the exact same error (except with the Google Glass Mirror API). Adding billing information and adding both http/https to my redirect URL didn't help either.

Apparently Google APIs have been known to misbehave when you provide both OAuth2 credentials and an API Key! The solution (if you are using the Google APIs Client Library for PHP) is to simply remove the following from your code:

$client->setDeveloperKey($key);

Hope this helps.

like image 101
Metablocks Corp Avatar answered Sep 29 '22 00:09

Metablocks Corp


I got exactly the same error. In my case, I was trying to access "https://www.googleapis.com/plus/v1/people", and 'Google+ API' was not enabled for my project in API's section. I just had to set 'Google+ API' ON

like image 27
chank Avatar answered Sep 29 '22 00:09

chank