Answers for "Caused by: java.lang.RuntimeException: Unable to obtain credentials to communicate with the Cloud SQL API"

SQL
0

Caused by: java.lang.RuntimeException: Unable to obtain credentials to communicate with the Cloud SQL API

This error comes if "application_default_credentials.json" file is not there in "C:\Users\<USER_NAME>\AppData\Roaming\gcloud\"

To populate this JSON file, run below command in cmd prompt;

command : gcloud auth application-default login

So this will create "application_default_credentials.json" file in the above directory. Now, you can restart your spring boot application.
Posted by: Guest on May-25-2021

Code answers related to "Caused by: java.lang.RuntimeException: Unable to obtain credentials to communicate with the Cloud SQL API"

Code answers related to "SQL"

Browse Popular Code Answers by Language