Skip to content

Plugin fails if geocode source filed is null or empty #2

Description

@cruonline

If one of the entities in the collection contains null, geocode API responds with 400 error.

"Invalid request. Missing the 'address', 'components', 'latlng' or 'place_id' parameter"

Seems, plugin tries to process this response and logs multiple errors.

GmapGeocode > Failed to add node: Duplicate key for property id: ####
Missing typeName for reference in field: geocode

Maybe checking the source field before sending a request would be a better approach?
Also, some error handling for geocode API wouldn't hurt ;-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions