google-cloud-datastore

How do I fix an Internal Server Error?- Google Cloud

十年热恋 提交于 2020-06-17 13:06:36
问题 I am following this tutorial on Google Cloud Platform and am finding that the SIMPLE app launches successfully up on port 8080 but when I head over to the browser to view it externally, I get an internal server error. The tutorial can be found here: https://cloud.google.com/appengine/docs/standard/nodejs/building-app/deploying-web-service I am using Win8.1 using the GCP cloud shell terminal. I have also tried updating my npm packages, moving my yaml, nodejs files to the next higher directory

How do I fix an Internal Server Error?- Google Cloud

别等时光非礼了梦想. 提交于 2020-06-17 13:06:27
问题 I am following this tutorial on Google Cloud Platform and am finding that the SIMPLE app launches successfully up on port 8080 but when I head over to the browser to view it externally, I get an internal server error. The tutorial can be found here: https://cloud.google.com/appengine/docs/standard/nodejs/building-app/deploying-web-service I am using Win8.1 using the GCP cloud shell terminal. I have also tried updating my npm packages, moving my yaml, nodejs files to the next higher directory

How get a metric sample from monitoring APIs

家住魔仙堡 提交于 2020-06-16 07:06:51
问题 I took a look very carefully to monitoring API. As far as I have read, it is possible to use gcloud for creating Monitoring Policies and edit the Policies ( Using Aleert API). Nevertheless, from one hand it seems gcloud is able only to create and edit policies options not for reading the result from such policies. From this page I read this options: Creating new policies Deleting existing policies Retrieving specific policies Retrieving all policies Modifying existing policies On another hand

Querying Datastore using some of the indexed properties

寵の児 提交于 2020-06-13 12:17:54
问题 I am trying out Cloud Datastore's indexes, and I cannot figure out the configuration I need to resolve my queries. I have created a few entities of the same kind (named "object"), all of them with 5 properties named equally (property_0, property_1, ..., property_4). Then, I have created a composite index for that kind, indexing all 5 properties, and setting property_4 in the last place because I want to apply inequality filters on it. The definition of the index is: indexes: - kind: object

Querying Datastore using some of the indexed properties

巧了我就是萌 提交于 2020-06-13 12:16:19
问题 I am trying out Cloud Datastore's indexes, and I cannot figure out the configuration I need to resolve my queries. I have created a few entities of the same kind (named "object"), all of them with 5 properties named equally (property_0, property_1, ..., property_4). Then, I have created a composite index for that kind, indexing all 5 properties, and setting property_4 in the last place because I want to apply inequality filters on it. The definition of the index is: indexes: - kind: object

How to return an entire Datastore table by name using Node.js on a Google Cloud Function

纵饮孤独 提交于 2020-05-17 09:27:05
问题 I want to retrieve a table (with all rows) by name. I want to HTTP request using something like this on the body {"table": user} . Tried this code without success: 'use strict'; const {Datastore} = require('@google-cloud/datastore'); // Instantiates a client const datastore = new Datastore(); exports.getUsers = (req, res) => { //Get List const query = this.datastore.createQuery('users'); this.datastore.runQuery(query).then(results => { const customers = results[0]; console.log('User:');

Not able to import entities into datastore emulator

∥☆過路亽.° 提交于 2020-05-15 06:57:25
问题 I'm trying to restore a backup of my datastore entities into the emulator running on localhost. I'm using the guide from this location https://cloud.google.com/datastore/docs/tools/emulator-export-import This is what I have managed to do so far. #start the emulator gcloud beta emulators datastore start --store-on-disk --data-dir "./datastore-emulator" --project=my-project # set the environment $(gcloud beta emulators datastore env-init) # initiate the restore operation curl -X POST localhost

GAE - No API environment is registered for this thread

亡梦爱人 提交于 2020-04-18 06:12:33
问题 I have an spring-boot application deployed to google cloud using google app engine. There is a datastore with multiple entities. When I try to retrieve data through my app (app is uploaded to appengine, not locally) it always throws an error - There was an unexpected error (type=Internal Server Error, status=500). No API environment is registered for this thread. I am trying to make it work this way: @Bean public FirebaseAuth firebaseAuth() throws IOException { ClassLoader classLoader = this

Is com.google.cloud.datastore.Datastore thread safe?

感情迁移 提交于 2020-03-04 08:57:07
问题 Is com.google.cloud.datastore.Datastore thread safe? More specifically, can one instance of Datastore be shared by multiple threads and can they all concurrently read from/write to the Cloud Datastore? In other words, if I'm building a Web Application that accesses the Cloud Datastore, do I need a single instance of the Datastore object or a pool of Datastore objects (just like JDBC connections to an RDBMS)? The API in question is http://googlecloudplatform.github.io/google-cloud-java/0.3.0

Are GAE Datastore cursors permanent and durable?

≡放荡痞女 提交于 2020-03-02 07:12:22
问题 Is it correct to say that a com.google.appengine.api.datastore.Cursor simply stores an index position into a GAE Datastore index? Are cursors durable? That is, can I store a cursor permanently and reuse it again and again knowing for sure that if it was pointing to 5000th position in the index, that's where it'll point forever? What if the index shrinks to less than 5000 entries? Will using this cursor cause an error or simply return nothing? For larger indexes (say 100,000 or more entries),