Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cruonline opened this issue Dec 10, 2020 · 0 comments
Open

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

cruonline opened this issue Dec 10, 2020 · 0 comments

Comments

@cruonline
Copy link

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 ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant