com.google.cloud.datastore.DatastoreException:未经验证。对象化java
我已经设置了objectify v6,当我试图保存一个实体时,我得到了这个异常 com.google.cloud.datastore.DatastoreException:未经验证 原因: com.google.datastore.v1.client.DatastoreException:Unauthenticated.,code=Unauthenticated 注意:我只是试图在本地主机上保存此实体 以下是我使用objectify保存实体的代码:com.google.cloud.datastore.DatastoreException:未经验证。对象化java,java,google-app-engine,google-cloud-platform,google-cloud-datastore,objectify,Java,Google App Engine,Google Cloud Platform,Google Cloud Datastore,Objectify,我已经设置了objectify v6,当我试图保存一个实体时,我得到了这个异常 com.google.cloud.datastore.DatastoreException:未经验证 原因: com.google.datastore.v1.client.DatastoreException:Unauthenticated.,code=Unauthenticated 注意:我只是试图在本地主机上保存此实体 以下是我使用objectify保存实体的代码: Subscriber subs
Subscriber subscriber = new Subscriber(phone);
ofy().save().entity(subscriber).now();
您的请求没有有效的身份验证凭据。谢谢你的回答。它很好地解决了我的问题。