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

empty error messges

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

Hi! 

We're using the :patch endpoint to make changes to the location on GMB and we're seeing errors of the type;

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

The errors are quite empty and don't explain a lot. Can this be improved?

2 Expert replyverified_user

Re: empty error messges

[ Edited ]
Google Employee
# 2
Google Employee

Hi @Ashesh A,

 

Please provide me with the the specific locationId for the location and the full HTTP request message of the PATCH request including the URI, query parameters, and the JSON payloads of request body as well as the response body for triggering this 500 Internal Server Error so that I help you troubleshoot this issue further.

 

Thanks,

Terry

Re: empty error messges

[ Edited ]
Follower ✭ ✭ ☆
# 3
Follower ✭ ✭ ☆

Hi Terry, the request body is;

 

 {
  "storeCode" : "el-caminito-toulouse",
  "locationName" : "Caminito",
  "primaryPhone" : "+33 5 61 23 51 74",
  "additionalPhones" : null,
  "address" : {
    "addressLines" : [ "Rue des Gestes 3" ],
    "subLocality" : null,
    "locality" : "Toulouse",
    "administrativeArea" : "Languedoc-Roussillon Midi-Pyrénées",
    "country" : "FR",
    "postalCode" : "31000"
  },
  "primaryCategory" : {
    "categoryId" : "gcid:restaurant"
  },
  "additionalCategories" : [ {
    "categoryId" : "gcid:argentinian_restaurant"
  } ],
  "websiteUrl" : "http://caminito-toulouse.fr",
  "regularHours" : {
    "periods" : [ {
      "openDay" : "MONDAY",
      "openTime" : "12:00",
      "closeDay" : "MONDAY",
      "closeTime" : "15:00"
    }, {
      "openDay" : "TUESDAY",
      "openTime" : "12:00",
      "closeDay" : "TUESDAY",
      "closeTime" : "15:00"
    }, {
      "openDay" : "WEDNESDAY",
      "openTime" : "12:00",
      "closeDay" : "WEDNESDAY",
      "closeTime" : "15:00"
    }, {
      "openDay" : "THURSDAY",
      "openTime" : "12:00",
      "closeDay" : "THURSDAY",
      "closeTime" : "15:00"
    }, {
      "openDay" : "FRIDAY",
      "openTime" : "12:00",
      "closeDay" : "FRIDAY",
      "closeTime" : "15:00"
    }, {
      "openDay" : "MONDAY",
      "openTime" : "19:00",
      "closeDay" : "MONDAY",
      "closeTime" : "23:30"
    }, {
      "openDay" : "TUESDAY",
      "openTime" : "19:00",
      "closeDay" : "TUESDAY",
      "closeTime" : "23:30"
    }, {
      "openDay" : "WEDNESDAY",
      "openTime" : "19:00",
      "closeDay" : "WEDNESDAY",
      "closeTime" : "23:30"
    }, {
      "openDay" : "THURSDAY",
      "openTime" : "19:00",
      "closeDay" : "THURSDAY",
      "closeTime" : "23:30"
    }, {
      "openDay" : "FRIDAY",
      "openTime" : "19:00",
      "closeDay" : "FRIDAY",
      "closeTime" : "23:30"
    }, {
      "openDay" : "SATURDAY",
      "openTime" : "19:00",
      "closeDay" : "SATURDAY",
      "closeTime" : "23:30"
    }, {
      "openDay" : "SATURDAY",
      "openTime" : "12:00",
      "closeDay" : "SATURDAY",
      "closeTime" : "16:00"
    } ]
  },
  "specialHours" : null,
  "serviceArea" : null,
  "locationKey" : null,
  "labels" : null,
  "adWordsLocationExtensions" : null,
  "photos" : {
    "coverPhotoUrl" : "https://cdn0.centralapp.com/api/v1/media/cover-16-9/3402_1463148023184_Ia8DEfcpSK_cover.jpeg",
    "profilePhotoUrl" : "https://s3-eu-west-1.amazonaws.com/centralapp.img/3402_1463677462635_Ia8DEfcpSK_logo.jpeg",
    "logoPhotoUrl" : "https://s3-eu-west-1.amazonaws.com/centralapp.img/3402_1463677462635_Ia8DEfcpSK_logo.jpeg",
    "preferredPhoto" : "PROFILE",
    "additionalPhotoUrls" : [ "https://s3-eu-west-1.amazonaws.com/centralapp.img/3402_1463148637849_Ia8DEfcpSK_gallery.jpeg", "https://s3-eu-west-1.amazonaws.com/centralapp.img/3402_1463148649441_Ia8DEfcpSK_gallery.jpeg", "https://s3-eu-west-1.amazonaws.com/centralapp.img/3402_1463741299214_Ia8DEfcpSK_gallery.jpeg", "https://s3-eu-west-1.amazonaws.com/centralapp.img/3402_1463152435563_Ia8DEfcpSK_gallery.jpeg", "https://s3-eu-west-1.amazonaws.com/centralapp.img/3402_1463152489593_Ia8DEfcpSK_gallery.jpeg", "https://s3-eu-west-1.amazonaws.com/centralapp.img/3402_1463152540013_Ia8DEfcpSK_gallery.jpeg", "https://s3-eu-west-1.amazonaws.com/centralapp.img/3402_1463152595683_Ia8DEfcpSK_gallery.jpeg" ]
  },
  "openInfo" : {
    "status" : "OPEN"
  }
}

And the location name (path param) is accounts/116477258169132814447/locations/5051396460492727065,

 

URI: https://mybusiness.googleapis.com/v3/accounts/116477258169132814447/locations/5051396460492727065,

Method: PATCH,

Query: language_code=fr

Headers: Authorisation: Bearer <access_token>

Re: empty error messges

Follower ✭ ☆ ☆
# 4
Follower ✭ ☆ ☆
Hi guys,
I have the same problem and in "PHP client library" is "Detailed Error Responses" not supported.
I am updating/adding photos via API, but I get always 500 errors and message "Request only partially succeeded, refer to details for which fields failed."
The photos are added and I can see them in the UI, but I need to know if was request successful.
I tried to change the resolution 500x500 and after that 720x720 pixels, but the error still there.
Any Idea?



Re: empty error messges

Google Employee
# 5
Google Employee

Hi @Ashesh A & @Iliyan H,

 

We are aware of this 500 Internal Server Error returned when sending a PATCH request to upload photos to the specified location. We will update you in a post on this board once this issue has been resolved.

 

Thanks,

Terry

Re: empty error messges

Google Employee
# 6
Google Employee

Hi @Ashesh A & @Iliyan H,

 

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

empty error messges

Follower ✭ ✭ ☆
# 7
Follower ✭ ✭ ☆

Thank you for the quick resolution @Terry W. We'll let you know if we see the issue again.

 

 

empty error messges

[ Edited ]
Follower ✭ ✭ ☆
# 8
Follower ✭ ✭ ☆

Hi,

We're noticing that this issue has recurred on the API once at December 30 2016 18:44:53 CET. We haven't seen any recurrences since then.

Full error response:

{
  "error": {
    "code": 500,
    "message": "Request only partially succeeded, refer to details for which fields failed.",
    "status": "INTERNAL",
    "details": [
      {
        "@type": "type.googleapis.com/google.mybusiness.v3p1.InternalError",
        "errorDetails": [
          {
            "code": 1001,
            "field": "photos.logo_photo_url",
            "message": "Uploading image failed",
            "value": "https://cdn0.centralapp.com/api/v1/media/logo-large/place-4397-5aea199b-f26f-40f6-b40f-2ea5beab6130.jpeg"
          }
        ]
      }
    ]
  }
}

Re: empty error messges

Google Employee
# 9
Google Employee

Hi @Ashesh A,

 

Please make sure that the location you are uploading the photos to has an associated Google+ page, as indicated by a plusPageId in the LocationKey, since photos are supported only with a Google+ page, and the photos meet the Google My Business guidelines and the specifications of the Photos object documented on our Google Developers site.

 

Thanks,

The Google My Business API team