You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Credentials fail with "Cloud Datastore API not enabled" #843
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?
Hi @volgin, thanks for creating this issue. The latest version of our Datastore client library (version 0.1.7) uses Cloud Datastore v1beta3, which is not enabled by default for some users. Try enabling the v1beta3 API on the Developer's Console using this link.
Even if you had the Datastore API enabled previously, it may be the v1beta2 version, which has recently been renamed to "Google Cloud Datastore API (v1beta2)" the Developer's Console. (As you mention, the v1beta2 version of the API is what appears on the API Manager home page's listing. Explicitly searching "Google Cloud Datastore API" using the search box should yield the newest version of the API.)
This API is not listed in popular APIs. In fact, the popular APIs show Cloud Datastore API, which links to v1beta2. I was able to find the "new" Datastore API only using the search field. I am sure you will fix this soon.
The Datastore team merged in a change to update the link, but the link will only change for users once the next release of the Developer's Console is out. They said it should be released by today afternoon. Shall we keep the issue open until then?
Activity
ajkannan commentedon Apr 3, 2016
Hi @volgin, thanks for creating this issue. The latest version of our Datastore client library (version 0.1.7) uses Cloud Datastore v1beta3, which is not enabled by default for some users. Try enabling the v1beta3 API on the Developer's Console using this link.
Even if you had the Datastore API enabled previously, it may be the v1beta2 version, which has recently been renamed to "Google Cloud Datastore API (v1beta2)" the Developer's Console. (As you mention, the v1beta2 version of the API is what appears on the API Manager home page's listing. Explicitly searching "Google Cloud Datastore API" using the search box should yield the newest version of the API.)
Let me know if that solution works for you.
volgin commentedon Apr 3, 2016
This API is not listed in popular APIs. In fact, the popular APIs show Cloud Datastore API, which links to v1beta2. I was able to find the "new" Datastore API only using the search field. I am sure you will fix this soon.
ajkannan commentedon Apr 4, 2016
Yes, I've pinged people about when they plan to update that "popular APIs" link, and I'll keep tabs to see that it gets updated.
aozarov commentedon Apr 7, 2016
@ajkannan can we close the issue? Did the Datastore team completed the back-fill and "Cloud Datastore API" link now points to v1beta3?
ajkannan commentedon Apr 7, 2016
The Datastore team merged in a change to update the link, but the link will only change for users once the next release of the Developer's Console is out. They said it should be released by today afternoon. Shall we keep the issue open until then?
ajkannan commentedon Apr 7, 2016
Closing this as the API link change has been released.
deps: update dependency com.google.cloud:google-cloud-pubsub to v1.11…
chore(main): release 2.7.0 (googleapis#858)
chore(main): release 2.6.0 (googleapis#843)
build(deps): update dependency org.apache.maven.plugins:maven-project…
chore(deps): update dependency com.google.cloud:google-cloud-datacata…
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
7 remaining items
chore(main): release 2.8.0 (#837)
deps: update dependency importlib-metadata to v4.13.0 (#843)
chore(main): release 3.0.4 (#850)
fix: use initialized logging option in constructor (#843)
deps: update dependency com.google.cloud:google-cloud-logging to v3.1…
deps: update dependency gcp-releasetool to v1.8.8 (#843)
chore(main): release 2.11.5 (#867)
deps(java): update actions/github-script action to v5 (#1339) (#843)
fix: use initialized logging option in constructor (googleapis#843)
deps(java): update actions/github-script action to v5 (#1339) (#843)
chore(main): release 0.123.23 (#843)
chore(main): release 0.123.23 (#843)
chore: release 1.114.4-SNAPSHOT (#843)
chore: release 1.114.4-SNAPSHOT (#843)
test(deps): update dependency com.google.truth:truth to v1.1.3 (googl…