My Business
5.2K members online now
5.2K members online now
For developers who are using the Google My Business API to manage locations
Guide Me
star_border
Reply

https://mybusiness.googleapis.com/v3/accounts - suddenly failing

[ Edited ]
Follower ✭ ☆ ☆
# 1
Follower ✭ ☆ ☆

This code has been working for several months now -- today I started getting:

 

{
  "error": {
    "code": 504,
    "message": "Deadline expired before operation could complete.",
    "status": "DEADLINE_EXCEEDED"
  }
}

This call seems to be taking a long time to complete.


 

1 Expert replyverified_user

Re: https://mybusiness.googleapis.com/v3/accounts - suddenly failing

Google Employee
# 2
Google Employee

Hi @Brad E,

 

To avoid getting the 504 Gateway Timeout error, It’s best practice to always use a fieldMask in your PATCH request for updating a location, limiting the update to specific fields and preserving other unspecified location data.

 

Additionally, please limit the API calls usage of your project to 5 Queries Per Second (QPS) to help prevent timeout errors.

For more information about rate limit restrictions on the Google My Business API, please check out this section in the FAQ.

 

Thanks,

The Google My Business API team

Re: https://mybusiness.googleapis.com/v3/accounts - suddenly failing

Follower ✭ ☆ ☆
# 3
Follower ✭ ☆ ☆
I am simply trying to get the accounts - it's not a patch request -- also, we started logging our request and have never seen 5 requests (or 4) in a second.

That said, we have a lot of customers using this API to access their GMB accounts -- I assume you want people to use this API -- which makes your rate limiting seem low. We're trying to be efficient, but several customers all accessing GMB at the same time is a real possibility and one that should not break.

Are you suggesting we track our API calls per second and put up a message telling our users that we are overwhelming the GMB API and to try again later? We can do that, but it seems amateurish.


Re: https://mybusiness.googleapis.com/v3/accounts - suddenly failing

Google Employee
# 4
Google Employee

Hi @Brad E,

 

We are working on the issue with 504 error which you reported for the Google My Business API and will follow up with a response when the issue is fixed. Thank you for your patience!

Thanks,

The Google My Business API team

Re: https://mybusiness.googleapis.com/v3/accounts - suddenly failing

Google Employee
# 5
Google Employee

Hi @Brad E,

 

The issue with the 504 error when listing all accounts has been fixed. Please report back to us if you find any other issues.

Thanks,

The Google My Business API team