我有简单的用户类在Datastore中进行创建和更新。它在本地运行正常,但当我在Kubernetes上部署它时,它为我提供了以下响应:
{
"timestamp": 1525833559351,
"status": 500,
"error": "Internal Server Error",
"exception": "com.google.cloud.datastore.DatastoreException",
"message": "Request had insufficient authentication scopes.",
"path": "/api/test/sample/5629499534213120"
}
作为参考,我已经按照 this Stack Overflow链接。