A couple days ago the Google Maps API randomly stopped working in some places in our platform.
Failed Attempts
- I’ve read dozens of Bubble forum articles, trying to find a solution, Nothing.
- I’ve regenerated the google API key and swapped it out in Bubble. Nothing.
- I adjusted the API restrictions on google’s side, and eventually removed all restrictions to eliminate this as a possible issue. Nothing.
- I deleted plugins that use the maps key. Nothing
- I deleted and rebuilt geo search boxes that aren’t populating. Nothing.
- Updated payment information in Google. Nothing.
Additional Symptoms.
- Some search boxes are not populated with locations when a user starts typing.
- The issue is not consistent for users for a given search box, meaning some boxes don’t work for some users and do for others.
- The issue is not consistent for dev or prod for a given search box, meaning some boxes don’t work in prod and don’t work in dev. And visa-versa.
- The issue is Interment for a given search box, meaning some boxes stop working, and other some start working again.
- If there are multiple search boxes on a given page they either all work or they all don’t work.
- The browser’s UI console has the following errors, regardless if the search boxes are functional.
*A “[Warning] Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance.”
*B “You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.”
*C. “[Error] Geocoding Service: cannot connect to the service, please check the Geocode API key” - This has happened in the past, and the issue eventually resolved itself.