I was debugging my Google Cloud Run Python code over SSH in VSCode and it would ask for a password. I figured out it was google cloud SDK re-authentication was required.
I got passed the password prompt, but now got
google.auth.exceptions.RefreshError: Reauthentication is needed. Please run `gcloud auth application-default login` to reauthenticate.
Because I'm doing this over SSH, have to add --no-launch-browser
gcloud auth application-default login --no-launch-browser
Enter the authorization code in gcloud CLI on the machine you want to log into. This is a credential similar to your password and should not be shared with others.
Success! I'm now debugging my Python code!
Python dependencies I'm using:
Please sign in to leave a comment.