项目 'test-dev' 不存在或不包含活动的 Cloud Datastore 数据库
The project 'test-dev' does not exist or it does not contain an active Cloud Datastore database
我正在尝试 运行 测试在 google 云中创建的项目,但我遇到以下错误,
Error: The project 'test-dev' does not exist or it does not contain an active Cloud Datastore database.
Please visit http://console.cloud.google.com to create a project or https://console.cloud.google.com/datastore/setup?project=test-dev to add a Cloud Datastore database.
Note that Cloud Datastore always has an associated App Engine app and this app must not be disabled.
以前有人遇到过这个错误,如何解决?
我在遵循数据存储 API 教程时遇到了这个问题:
https://cloud.google.com/datastore/docs/datastore-api-tutorial
当我将项目 ID 重新定义为新项目的 ID 时,我的问题就消失了。对于本教程,我设置 DATASTORE_PROJECT_ID=NEW_ID
是的,我在尝试遵循 Google Compute Engine 教程中的 Python 之一时遇到了 完全 相同的错误:
https://cloud.google.com/python/tutorials/bookshelf-on-compute-engine
幸运的是,您的错误信息(其中 "test-dev" 是项目名称):
Please visit http://console.cloud.google.com to create a project
or https://console.cloud.google.com/datastore/setup?project=test-dev
to add a Cloud Datastore database.
告诉您 确切 应该做什么:单击第二个 link,并在您选择的项目名称下设置云数据存储。我正在学习的教程似乎假设会立即设置一个(但事实并非如此)。建立那个数据库,事情应该会很好(或更好)。
注意:对于 2018 年 11 月,您可能会得到类似 "Cloud Datastore or Cloud Firestore" 的内容:系统可能会提示您同时输入这两种信息。我选择了 Datastore,因为 Firestore 是测试版。
我正在尝试 运行 测试在 google 云中创建的项目,但我遇到以下错误,
Error: The project 'test-dev' does not exist or it does not contain an active Cloud Datastore database.
Please visit http://console.cloud.google.com to create a project or https://console.cloud.google.com/datastore/setup?project=test-dev to add a Cloud Datastore database.
Note that Cloud Datastore always has an associated App Engine app and this app must not be disabled.
以前有人遇到过这个错误,如何解决?
我在遵循数据存储 API 教程时遇到了这个问题: https://cloud.google.com/datastore/docs/datastore-api-tutorial
当我将项目 ID 重新定义为新项目的 ID 时,我的问题就消失了。对于本教程,我设置 DATASTORE_PROJECT_ID=NEW_ID
是的,我在尝试遵循 Google Compute Engine 教程中的 Python 之一时遇到了 完全 相同的错误:
https://cloud.google.com/python/tutorials/bookshelf-on-compute-engine
幸运的是,您的错误信息(其中 "test-dev" 是项目名称):
Please visit http://console.cloud.google.com to create a project
or https://console.cloud.google.com/datastore/setup?project=test-dev
to add a Cloud Datastore database.
告诉您 确切 应该做什么:单击第二个 link,并在您选择的项目名称下设置云数据存储。我正在学习的教程似乎假设会立即设置一个(但事实并非如此)。建立那个数据库,事情应该会很好(或更好)。
注意:对于 2018 年 11 月,您可能会得到类似 "Cloud Datastore or Cloud Firestore" 的内容:系统可能会提示您同时输入这两种信息。我选择了 Datastore,因为 Firestore 是测试版。