Error where laravel connect to google drive folder - laravel

Google\Service\Exception { "error": { "errors": [ { "domain": "usageLimits", "reason": "dailyLimitExceededUnreg", "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.", "extendedHelp": "https://code.google.com/apis/console" } ], "code": 403, "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup." } }
public function convert(){
$files = Storage::disk('google')->allFiles();
dd($files);
return view('frontend.view')->with(compact('files'));
}
When i connect from laravel controller to specific google driver. that error appeared.
Which problem i have ? And how could i fix this prolem. Please help me . thanks

The error message tells you. "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
You have already used up the daily Limit. To make further requests you have to log in, probably with oauth.
update
Maybe try this: Go to the Google developer console under apis. Search for your project that your api is key related to. Check if the status for that key happens to be set to OFF. If so, turn it on.

Related

YouTube Data API units per day limited to 0

I am trying to implement the YouTube Data API v3 in my Python project. However it seems that I always get a error with usage limits.
Here is the specific error I am seeing:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. YouTube Data API has not been used in project 236433974813 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=236433974813 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=236433974813"
}
],
"code": 403,
"message": "Access Not Configured. YouTube Data API has not been used in project 236433974813 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=236433974813 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
}
}
The console says 0 quota (I cannot post images due to low reputation, but it says this when looking at the quotas.)
I have the free trial activated.
You need to first go to the GCP console and activate the YouTube Data API for your project. You must do this for each API in each project.
https://console.cloud.google.com

Google Calendar API returns Daily Limit error

I get the following error when trying to access the Calendar API
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "dailyLimitExceededUnreg",
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
"extendedHelp": "https://code.google.com/apis/console"
}
],
"code": 403,
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
}
}
However, I checked the google developer console and I am nowhere near hitting my limit (I'm at 2,500 queries when the max is 1,000,000). Also, I don't see how I am not authenticated because I use the OAuth 2.0 credentials to make the api call.
Check the status of the Google Calendar API from the Google Developer Console if it is enabaled.
Then wait for a few minutes after turning the API. You must ensure that you will get a new token each time before trying it.
You can also follow the suggested action that will help you about Google Calendar API Usage Limits error.

500 error when copying a google spreadsheet

I'm trying to copy a google spreadsheet using the google_drive gem. This has been working for many months before.
However, I'm now getting the following error consistently:
Sending HTTP post https://www.googleapis.com/drive/v3/files/$fileid/copy?fields=%2A
{
"error": {
"errors": [
{
"domain": "global",
"reason": "responsePreparationFailure",
"message": "The operation was successful, but there was an error preparing the response."
}
],
"code": 500,
"message": "The operation was successful, but there was an error preparing the response."
}
}
I've tried updating the library, but with no joy. The docs for the endpoint don't mention this fields parameter. Could this be the issue?
500 is a Google server issue. Your best with these is to wait a few minutes and try again. you can also check their server status page to make sure there is nothing down
https://www.google.com/appsstatus#hl=da&v=status

403 'serving limit exceeded' but have 'Unlimited requests/second/user'

We utilize the Content API for Shopping to make updates to our product data. We do this several times a day, and have done so for just over 2 months.
We made several successful calls today, but then started receiving the following:
Google API Error Response:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "servingLimitExceeded",
"message": "Serving Limit Exceeded"
}
],
"code": 403,
"message": "Serving Limit Exceeded"
}
}
That lasted about an hour, then we made successful calls for a bit, then started getting errors again.
Checking the Google API Console -both Quota and Reports, we have 'Unlimited requests/second/user' for the all aspects of this API.
Is there an API issue? If we are exceeded a quota, we do not see what that is.

pageSpeedOnline.pagespeedapi().runpagespeed(..) function fails with error 403

I have tried to analyze url page using pageSpeedOnline.pagespeedapi().runpagespeed(..) api but fails with 403 "Forbidden". The api is enabled in the console and the billing is also enabled but I am blocked further since it always fails with 403. The billing was just enabled since a week back.
Below is the response of the curl request,
curl "https://www.googleapis.com/pagespeedonline/v1/runPagespeed?url=http://code.google.com/speed/page-speed/&key=API_KEY"
{
"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."
}
}
Please help.
I got it resolved, by creating "Key for browser apps (with referers)" and used that API key in the project.

Resources