Skip to content

[Location Attributes] [INVALID_ARGUMENT] Request contains an invalid argument readMask #6637

Closed as not planned
@verasminsk

Description

@verasminsk

When requesting attributes via MyBusinessBusinessInformation I get an error from the Google API

    $locationsAttributes = $this->getMyBusinessBusinessInformation($token)->locations_attributes;

    try {
        $attributesModel = $locationsAttributes->getGoogleUpdated($name);
    } catch (GoogleServiceException $e) {
        $e1 = $e;
    }

    $locations = $this->getMyBusinessBusinessInformation($token)->locations;

    try {
        $attributesModel = $locations->getAttributes($name);
    } catch (GoogleServiceException $e) {
        $e2 = $e;
    }

in both cases there is an error:

{
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.BadRequest",
        "fieldViolations": [
          {
            "field": "read_mask",
            "description": "Field is required"
          }
        ]
      }
    ]
  }
}

Image

Image

    "google/apiclient": "^2.18",
    "google/apiclient-services": "^v0.396",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions