Credentials fail with "Cloud Datastore API not enabled" #843
Closed
Description
I use the same credentials to access Cloud Storage API and Cloud Datastore API. Both APIs are enabled for my project. The Cloud Storage works as expected. Datastore fails with:
com.google.datastore.v1beta3.client.DatastoreException: The Cloud Datastore API is not enabled for the project rebelplayercom, code=FAILED_PRECONDITION
at com.google.datastore.v1beta3.client.RemoteRpc.makeException(RemoteRpc.java:126)
at com.google.datastore.v1beta3.client.RemoteRpc.makeException(RemoteRpc.java:169)
at com.google.datastore.v1beta3.client.RemoteRpc.call(RemoteRpc.java:89)
at com.google.datastore.v1beta3.client.Datastore.lookup(Datastore.java:92)
at com.google.gcloud.datastore.spi.DefaultDatastoreRpc.lookup(DefaultDatastoreRpc.java:137)
At least one more user reported the same problem yesterday on StackOverflow. He also claims that the Datastore API is enabled for his project.
Note that the API explorer shows v1beta2 for Cloud Datastore API, not v1beta3. Can it be the cause of this problem?