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

Internal error encountered when reading list of locations

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello,

We are writing a script to retrieve all our locations via API.

When we call 

GET /v3/accounts/< Text has been removed to protect private information >/locations?

we are able to get a list of locations and a nextPage token for about 50 pages. But eventually, we get this 500 error and we cannot paginate any further

 

HTTP/1.1 500 Internal Server Error
Alternate-protocol: 443:quic
Content-length: 109
X-xss-protection: 1; mode=block
X-content-type-options: nosniff
Transfer-encoding: chunked
Vary: Origin, X-Origin, Referer
Server: ESF
-content-encoding: gzip
Cache-control: private
Date: Wed, 13 Jul 2016 16:05:29 GMT
X-frame-options: SAMEORIGIN
Alt-svc: quic=":443"; ma=2592000; v="36,35,34,33,32,31,30,29,28,27,26,25"
Content-type: application/json; charset=UTF-8
{
 
"error": {
   
"status": "INTERNAL",
   
"message": "Internal error encountered.",
   
"code": 500
 
}
}

 

This is the nextPage token that results in the 500 error

< Text has been removed to protect private information >

 

and this is the last nextPage token that works

< Text has been removed to protect private information >

 

Can you advise? We have tried various things, including slowing down the script and other things, but it always seems to stop at about the same point.

 

Many thanks,

 

Daniel M

 

 

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Daniel M
August 2016

Re: Internal error encountered when reading list of locations

Google Employee
# 5
Google Employee

Hi @Daniel M,

 

The issue with the 500 Internal Server Error when reading a large list of locations for the specified account has been fixed. Please report back to us if you find any other issues.

Thanks,

The Google My Business API team

View solution in original post

Re: Internal error encountered when reading list of locations

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭
I'd suggest passing in the X-GOOG-API-FORMAT-VERSION header (if you are not) and see if you can get better debugging information.

https://developers.google.com/my-business/content/support

Re: Internal error encountered when reading list of locations

Google Employee
# 3
Google Employee

Hi @Daniel M,

 

We are aware of the issue you reported and we will follow up with you once the issue is fixed. Thanks for your patience.

Thanks,

The Google My Business API team

Re: Internal error encountered when reading list of locations

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭
Thanks Yash. I appreciate that this could take a while.
In the meantime, can I ask: Our need is that we want to obtain a list of all the locations with the location_id and the plusPageId. If we just download the locations from the front end these elements are not there. Is there any other way to obtain these for all our locations?
Any help would be greatly appreciated.
Marked as Best Answer.
Solution
Accepted by topic author Daniel M
August 2016

Re: Internal error encountered when reading list of locations

Google Employee
# 5
Google Employee

Hi @Daniel M,

 

The issue with the 500 Internal Server Error when reading a large list of locations for the specified account has been fixed. Please report back to us if you find any other issues.

Thanks,

The Google My Business API team

Re: Internal error encountered when reading list of locations

Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭
thanks... it works now.