在我的gcloud shell上获取`gcloud auth print-identity-token`命令的错误

问题描述

bin

gcloud auth print-identity-token ERROR: (gcloud.auth.print-identity-token) No identity token can be obtained from the current credentials. 上,我可以看到我的帐户为有效帐户(用户帐户)。 我正在云外壳上尝试此操作。 注意-这之前已经起作用,我能够通过此命令生成JWT令牌。

解决方法

PIT thread中已经报告了此问题,您可以在此处进行跟踪和跟进。

,

您好Kumar Shaswat

今天我已经用Google Cloud SDK 310.0.0再次尝试过,发现在Cloud Shell中,我可以运行命令$ gcloud auth print-identity-token

因此要求您检查$ gcloud version并重试。