Open maxolasersquad opened 5 months ago
Thanks for this. I agree that it should be handled more gracefully. A Geocoder::InvalidApiKey
exception should be raised (if exception-raising is configured) or an empty array should be returned. Looks like the test that checks this isn't written properly. I'm open to a pull request.
Expected behavior
No error should be thrown.
Actual behavior
The following error is produced:
Steps to reproduce
Set up a Ruby on Rails application with Geocoder and configure it for MapBox, but with an invalid auth token. Try to save an Address model that uses Geocoder.
Environment info
More information
Geocoder configuration.