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

When creating new Locations I get this error

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

When creating new Locations I get  this error

{
"error": {
"code": 500,
"message": "Request only partially succeeded, refer to details for which fields failed.",
"status": "INTERNAL"
}
}

 

The create succeeds.  But I am not able to see the details for which field failed?

Can anyone give me more information on what we are doing here?

1 Expert replyverified_user

Re: When creating new Locations I get this error

Google Employee
# 2
Google Employee

Hi @Rio S,

 

This should be a duplicate of the case in this topic. We are aware of this 500 Internal Server Error without a complete detailed error message returned when sending requests to modify the specified location, especially with photos. We will update you in this thread once the issue has been resolved.

 

Thanks,

Terry

When creating new Locations I get this error

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

You link refers to a PATCH,  I have not seen this error when running a PATCH, only on CREATE

 

Re: When creating new Locations I get this error

Google Employee
# 4
Google Employee

Hi @Rio S,

 

Your reported bug is classified as the duplicate of the other case because these requests in general triggered the 500 Internal Server Error and received an incomplete detailed error message.

 

Please provide me with the specific locationId for the location and the full HTTP request message of the POST request for creating a new location including the URI, query parameters, and the JSON payloads of request body as well as the response body that triggered this 500 Internal Server Error so that I can add more details to this existing bug in our issue tracking system.

 

Thanks,

Terry

Re: When creating new Locations I get this error

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

POST

https://mybusiness.googleapis.com/v3/accounts/113058196433998926475/locations?languageCode=en&valida...

 

POST BODY

{
	"locationName": "CVS Photo",
	"primaryPhone": "(716) 839-2900",
	"storeCode": "PT618",
	"websiteUrl": "http:\/\/www.cvs.com\/store-locator\/cvs-pharmacy-address\/4968+Harlem+Road-Amherst-NY-14226\/storeid=618?WT.mc_id=LS_GOOGLE_PHOTO_PT618",
	"openInfo": {
		"status": "OPEN"
	},
	"address": {
		"addressLines": ["4968 Harlem Road"],
		"administrativeArea": "NY",
		"country": "US",
		"locality": "Amherst",
		"postalCode": "14226"
	},
	"primaryCategory": {
		"categoryId": "gcid:photo_lab",
		"name": "Photo Lab"
	},
	"additionalCategories": [{
		"categoryId": "gcid:digital_printer",
		"name": "Digital Printer"
	}, {
		"categoryId": "gcid:passport_photo_processor",
		"name": "Passport Photo Processor"
	}, {
		"categoryId": "gcid:photo_shop",
		"name": "Photo Shop"
	}, {
		"categoryId": "gcid:print_shop",
		"name": "Print Shop"
	}],
	"photos": {
		"additionalPhotoUrls": ["https:\/\/www.cvs.com\/bizcontent\/general\/google-only\/store-int-photo.png"]
	},
	"adWordsLocationExtensions": {},
	"regularHours": {
		"periods": [{
			"closeDay": "MONDAY",
			"closeTime": "22:00",
			"openDay": "MONDAY",
			"openTime": "08:00"
		}, {
			"closeDay": "TUESDAY",
			"closeTime": "22:00",
			"openDay": "TUESDAY",
			"openTime": "08:00"
		}, {
			"closeDay": "WEDNESDAY",
			"closeTime": "22:00",
			"openDay": "WEDNESDAY",
			"openTime": "08:00"
		}, {
			"closeDay": "THURSDAY",
			"closeTime": "22:00",
			"openDay": "THURSDAY",
			"openTime": "08:00"
		}, {
			"closeDay": "FRIDAY",
			"closeTime": "22:00",
			"openDay": "FRIDAY",
			"openTime": "08:00"
		}, {
			"closeDay": "SATURDAY",
			"closeTime": "22:00",
			"openDay": "SATURDAY",
			"openTime": "08:00"
		}, {
			"closeDay": "SUNDAY",
			"closeTime": "22:00",
			"openDay": "SUNDAY",
			"openTime": "08:00"
		}]
	}
}

Post response

{
  "error": {
    "code": 500,
    "message": "Request only partially succeeded, refer to details for which fields failed.",
    "status": "INTERNAL"
  }
}

 

Re: When creating new Locations I get this error

Google Employee
# 6
Google Employee

Hi @Rio S,

 

The issue about the 500 Internal Server Error with an incomplete detailed error message received when modifying and especially uploading photos to the specified location has been fixed. Please report back to us if you find any other related issues.

 

Cheers,

Terry