Issue with saving Google API key restrictions

758 views Asked by At

I am currently having some troubles with saving Google API key restrictions. This is how I have configured in the Credentials Manager.

Application restrictions

  • Websites (*.azurestaticapps.net)

API restrictions

  • Geocoding API
  • Geolocation API
  • Maps JavaScript API
  • Places API

When I tried to save, I kept getting "Save failed" error, saying "The attempted action failed, please try again.", along with some tracking number.

I was a bit suspicious about the website URL that I put there, so I tried a different one to see if it'd make any difference, but it still failed with the same error.

I also had a look at this Google's official help doc. I don't think I missed anything obvious though.

1

There are 1 answers

0
woodykiddy On

I gave it another crack earlier today, and luckily found the workaround for it at least.

To save the API key restrictions successfully, you will have to make sure that you only have a single sign-in session in Google Cloud Console. If you have multiple ones, you will need to sign them out first, and then sign back in with the correct account.

In my case, what happened was that my browser already had another sign-in session previously. It's not that obvious to check whether or not you are signed in multiple sessions in the Google Cloud Console so I totally missed that.

Not too sure if this workaround would 100% work for others, but at least it did the trick for me. Hopefully something useful to know.