club-soda / club-soda-guide

Mindful Drinking Movement - Club Soda MVP 2.0
https://club-soda-guide-staging.herokuapp.com
17 stars 0 forks source link

Geocoding issues #653

Closed jessyclubsoda closed 4 years ago

jessyclubsoda commented 4 years ago

Over the past week or so, we've been getting this notification on every venue page on the site across multiple devices meaning that the Google Maps location doesn't load

Geocode issue

Any ideas what might be going on?

nelsonic commented 4 years ago

Oh ... This seems like an it's an issue with the Google Maps API Key. 💭 Thanks for opening the issue @jessyclubsoda 👍 @SimonLab do you have time to investigate this on Monday morning? 🔍

SimonLab commented 4 years ago

I've checked that the API key wasn't linked to one of the developer account (ie a temporary key) and it looks like Club Soda did create the key see https://github.com/club-soda/club-soda-guide/issues/6

I'm not sure why the key is not valid anymore, my first guess is that the free trial account might have ended but it can be another issue.

@jessyclubsoda @jussi-club-soda could you check if the API key still exist on your account otherwise you might need to create a new one. You should be able to access the API and services from https://console.cloud.google.com/ however I don't know which email/account was used to create the key.

Steps to create a new key if the current one is not found: https://github.com/club-soda/club-soda-guide/issues/6#issuecomment-447182412

jussi-club-soda commented 4 years ago

Yes, looks like we had a free trial account which has ended - I've "upgraded" our account, the APIs are still on the Google Console, I'm just seeing this:

! Remember to configure the OAuth consent screen with information about your application.

which gives me two options:

OAuth consent screen Choose how you want to configure and register your app, including your target users. You can only associate one app with your project. User Type Internal Only available to users within your organisation. You will not need to submit your app for verification. External Available to any user with a Google Account.

What should I do here?

nelsonic commented 4 years ago

@jussi-club-soda it might be an idea for us to have a Zoom call to get this resolved. Please let us know your availability today/tomorrow. Thanks!

jussi-club-soda commented 4 years ago

@nelsonic I think the maps are now working again. Happy to have a chat to discuss anything else we may need to do on Google to make sure things keep on working! I'm free this afternoon, but away all day tomorrow.

nelsonic commented 4 years ago

@jussi-club-soda thanks for confirming that Google Maps is working again! 🎉 Provided you have the API keys setup and under control, it should work without any issues now. We've had apps using Google Maps in production for several years without needing to update the keys.

@jessyclubsoda once you have confirmed everything is working, please let us know (and close the issue). Thanks! 👍