js:40 Geocoding Service: This API project is not authorized to use this API. For more information on authentication and Google Maps JavaScript API services please see: hidden link
I've checked the API console, ran through their steps to check billing ok, qoutas ok credentials ok - think it may be due to the site migrating from staging to live .
I'll try deleting and re creating the api
Also, found that error in toolset>settings>maps> check API Sorry! I should have checked there 1st.
first of all hit an error about key restrictions (see screenshot1)
Then removed the restrictions in the API console
This gave a green "Google API seems to be configured properly." Message in toolset settings/maps/check api
But also threw these errors and won't render the map, or do a look up in the address field of the post editor:-
js?libraries=places&v=3.30&key=AIzaSyBNnYtE5yUryU3g43uXqUznR5JbqZELS6g:40 Google Maps JavaScript API error: RefererNotAllowedMapError hidden link
Your site URL to be authorized: hidden link
After waiting 5 minutes or so this went away and everything is now tickety boo!
But before we go blaming this one squarely on google - Should Toolset be forcing us to use an un-restricted key when this is frowned on by the inline docs in the Google API console?
The first key is for client-based requests, meaning the key is exposed, and so should include URL referrer restrictions.
The second key is for server-server requests and is not exposed, and so can be left without restrictions. (Strictly it could be exposed by some packet-sniffing hack, and so if you are concerned you can add IP referrer restrictions, not URL restrictions, for which your server will need a static IP address.)