Skip to content

GMB API error model does not match GoogleJsonError model #1974

Closed

Description

The error response model of the GMB APIs (https://developers.google.com/my-business/ref_overview) currently looks like this:

{
    "error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT",
        "details": [{
                "@type": "type.googleapis.com/google.mybusiness.v4.ValidationError",
                "errorDetails": [{
                        "code": 3,
                        "field": "regular_hours.periods.close_time",
                        "message": "Time field must follow hh:mm format.",
                        "value": "25:00"
                    }
                ]
            }
        ]
    }
}

The subclass Details of the GoogleJsonError class, however, does not feature an errorDetails property.
Once the JsonParser is reached, we thus reach customizeParser.handleUnrecognizedKey(destination, key); for the errorDetails field.

Activity

  1. added
    type: feature request
    on Jan 28, 2022
  2. added
    priority: p3
    on Feb 14, 2022
  3. removed their assignment
    on Mar 24, 2022
  4. lesv commented on Mar 24, 2022

    @lesv

    @danielgazineu This is an issue w/ APIary that needs some love.

  5. blakeli0 commented on Apr 7, 2022

    @blakeli0
    Contributor

    @vpriesner Can you please provide the exact reproducible sequence for us to troubleshoot this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: p3type: feature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions