I was trying to authenticate with my Google Cloud project using a service account to set up Anthos when this error popped up. I was following the steps to configure my GKE clusters through Anthos, but after running the gcloud auth activate-service-account command, I kept getting the error message.
Hi @Aaryan,
Perhaps there is a previously active credential that does not meet requirements. You can check this by running gcloud auth list. If there is one, you can delete it by running gcloud auth revoke. Once the expired credential is removed, try running the gcloud auth command again.
Please see the “Credential” section of this documentation for gcloud auth activate-service-account for reference.
I hope this helps.