google-cloud-datastore

Why do I get 503 Service Unavailable errors using the Google Cloud Datastore API explorer?

依然范特西╮ 提交于 2020-08-19 13:01:15
问题 I submitted the following request using the API explorer in the Google Cloud Console: { "query": { "kinds": [ { "name": "Car" } ], "filter": { "propertyFilter": { "property": { "name": "car_name" }, "operator": "equal", "value": { "stringValue": "Honda" } } } } } And I got the following response: { "error": { "errors": [ { "domain": "global", "reason": "backendError", "message": "Backend Error" } ], "code": 503, "message": "Backend Error" } } I've authenticated with OAuth as well. Why won't

Why do I get 503 Service Unavailable errors using the Google Cloud Datastore API explorer?

喜夏-厌秋 提交于 2020-08-19 12:58:51
问题 I submitted the following request using the API explorer in the Google Cloud Console: { "query": { "kinds": [ { "name": "Car" } ], "filter": { "propertyFilter": { "property": { "name": "car_name" }, "operator": "equal", "value": { "stringValue": "Honda" } } } } } And I got the following response: { "error": { "errors": [ { "domain": "global", "reason": "backendError", "message": "Backend Error" } ], "code": 503, "message": "Backend Error" } } I've authenticated with OAuth as well. Why won't

cloud functions python to access Datastore

陌路散爱 提交于 2020-08-08 06:42:24
问题 I am looking for a tutorial or document on how to access datastore using cloud functions (python). However, it seems there is only tutorial for nodejs. https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/master/functions/datastore Can anybody help me out? Thanks 回答1: There are no special setup needed to access datastore from cloud functions in python. You just need to add google-cloud-datastore into requirements.txt and use datastore client as usual. requirements.txt # Function

Create/update in datastore triggers Cloud function

天大地大妈咪最大 提交于 2020-06-29 06:04:12
问题 I have a database in Google Datastore. I don't know how to use cloud functions, but i want to trigger an event after a creation or an update. Unfortunately the documentation is light on the subject : https://cloud.google.com/appengine/docs/standard/java/datastore/callbacks I don't know how i could use @PostPut to trigger an event as soon as a line is created or updated. Does anyone have a tutorial which a basic example ? thank you 回答1: Dan MacGrath provided an answer to a similar request