digitaldreams/googleplace

API error response is not returned when using Geocoding

Levdbas opened this issue · 0 comments

I ran into an error where Geocoding returned null when there was actually an error with my API key and restrictions. I finally found out when debugging the Reponse Class.

How to reproduce

  1. Create an API key that is restricted by http referrers and add a fake domain.
  2. Create a gecoding request (geocode request cannot be restricted by http referers and thus throws an error response)
  3. See that the response is null on Geocoding
  4. When debugging the Response Class you will have a meaningfull error returned.