High latency with google sheets api calls - google-api

I'm having very high latencies (5min) on google sheets append values requests. This is starting to happen more and more. As I have been doing the same requests for months (and same volume) I don't think it is because of my inputs.
Checking google support they suggested to create a topic here. Not sure if a google engineer will comment or if some other end users are experiencing the same problem?
In the charts you see a lot of errors, these are the errors I get: "append_sheet: googleapi: Error 500: Internal error encountered., backendError". So nothing useful :s.
Greetings,
PJ

Related

Google Places API OVER_QUERY_LIMIT

I'm working on a script which sends a few hundreds of API calls to Google Places API using the [nearbySearch]. After a few requests, I quickly get an OVER_QUOTA_LIMIT error.
In Google Cloud Console, I can see the requests made in the last days or hours but:
I'm a far cry from the 6 000 requests/minutes limit
I don't see any Quota Exceed Error in the graph
(https://developers.google.com/maps/documentation/javascript/places#place_search_requests)
If I scroll down a bit, I can see that there's apparently a "Premium Plan", but no request have been made up to now.
Now I can see that the Premium Plan is not available anymore for sign up or new customers..
So I guess it's just a graph to support people who have previously signed for this plan but that it is not relevant in my case.
My payment settings have been set up correctly so I don't understand what's happening here.
Thank you so much.

Google DisplayVideo -360 (DV360) Daily limit exceeded error

We have an app which uses different APIs like dv360 and google ads. The issue is that we are facing Daily limit exceeded exception very frequently. We have checked project dashboard to cross verify if we are actually hitting the quota. However, we found that we are not hitting the allowed quota for any of these APIs but still we are getting this error.
Can someone point out what can be the reason for the error ?
Thanks in advance.
The first thing that you need to understand is that the dashboard is not perfect it is not accurate by any sense of the word. it is an estimate and it is not real-time.
What you should check is the error message that you are getting this is the truth. You would not get that error message unless you where hitting the quota limit.
The first thing that you should do is check your code and ensure that you are not hitting the Usage Limits defined on that page.
if you are hitting the limit and you cant reduce the number of requests you are making then you will need to request a quota extension.

Google Analytic API Error (500) Backend Error

We have a sales tracker app. In this app, we collect all analytic data from 5 different analytic accounts (websites) and creating reports. It was working till today morning itself. Now it shows some errors like 500 Backend Error:
PHP Fatal error: Uncaught Google_Service_Exception: {"error":{"errors":[{"domain":"global","reason":"backendError","message":"Backend Error"}],"code":500,"message":"Backend Error"}}
500 errors are catch all errors that normally mean that there is something on the servers end that is the issue. If you check the documentation you will see the above comment. Google says that they dont want you to retry that error. However if you scroll down a bit more in the documentation you will find this section.
However we find the following as well.
However there is nothing with both "code":500,"message":"Backend Error"
backoff
There are a number of error messages where backoff would work.
With a python example that includes
This is because the Google analytics api is slightly different than the other Google apis the way it returns errors is not the same and in most cases its better. The reason for this is that backend error can be cause by flood protection. Not often but it can happen mostly around the hour. You should never run a large script on the hour because then you are competing with everyone that has cron jobs set up to extract data every hour.
I normally only use backoff for 'userRateLimitExceeded', 'quotaExceeded', 'internalServerError' errors not for 'backendError' but Google is stating it in their documentation so it may be worth a shot.
In the mean time i am going to send an email off to the team to get some clarification on the documentation.
500,"message":"Backend Error"
As for the message above i have seen this a few times and its often related to an issue on Googles end. Give back off a try while i wait to hear back from the team.

Google Places API and Measurement of Quota Requests

I wonder if someone else has experienced the same issue, and might have an answer to it.
I am using the Google Places API. There I do two kinds of requests
https://maps.googleapis.com/maps/api/place/textsearch/
and
https://maps.googleapis.com/maps/api/place/details/
After I have done about 20,000 of these requests my Quota of 150,000 has been eaten up, and I do get an error message.
The strange thing is, when I look at the Google API Console I can see the following:
In the API & Services Section I can see the following (which reflects the real requests I have done)
and in the IAM & admin section I do see a much higher value
This looks artifically high, and is limiting the service way to early.
Does anyone else have the same issue?
I figuert out, why there is this difference in request in the API view and requests in the Quota view.
When using the TextSeach Places API, each text search request, will be multiplied by a factor 10 towards your free contingent.
it is mentioned at this page:
TextSearchRequests

Google Sites 403 Forbidden: Insufficient storage quota

I'm developing an application in which I've wrote a function (.NET) to create a Google Site.
It works perfectly fine, up until I'm testing for a while and have created and deleted several sites in a relatively short time span: I eventually end up with the 403 Forbidden: Insufficient storage quota response. It's usually fixed after a day or 2, but it's not the first time I've encountered this issue, so I thought I should share it and see if anyone else has encountered the same thing.
I've read the article about Google Sites storage quota at https://support.google.com/sites/answer/96770?hl=en, but it doesn't seem like I've hit any of the quota. The sites that are created are empty templates, so the site quota can't be reached. They're located under a https://sites.google.com/a/ domain.
To make sure it isn't a configuration issue, I've tested the raw requests in the OAuth 2.0 Playground which can be found on https://developers.google.com/oauthplayground/, resulting in the same error response.
Steps to reproduce:
I've created multiple sites under the same Google Sites domain
I'm eventually unable to make more sites due to the "403 Forbidden - Insufficient storage quota" error
Even after deleting multiple sites, the issue still persists
Because the code I've written is quite long and not really relevant, I've made a GitHub snippet for the ones who are interested:
https://gist.github.com/Cyanized/8ef24ff1de6454fd4ccd6466d591a53d
Is there something I'm overlooking, or is it a known issue/bug?
Many thanks in advance!
I contacted Google Apps Support, and they've linked me an article with the answer.
The maximum amount of sites you can create on an account in a week is 5. If you go over that amount, you will get the error I mentioned. When the week is over, you're able to create more sites again.
This is a global restriction and can't be changed at the current time.
Reference:
https://support.google.com/sites/answer/117477?hl=en

Resources