google-app-engine

App Engine Node.js: how to link app logs and requests logs

半城伤御伤魂 提交于 2020-01-02 09:53:19
问题 I am using Node.js on App Engine Standard and Flexible. In the logs viewer, is it possible to display application logs nested inside request logs? 回答1: Yes it is possible to correlate application logs and request logs. This is the end result in the Logs Viewer: To achieve this you can either: Use both the @google-cloud/trace-agent and @google-cloud/logging-bunyan modules in your application . When you do so, your logs are automatically annotated with the correct Trace ID (see docs for Bunyan)

How to connect mysql database with nodejs from google cloud

杀马特。学长 韩版系。学妹 提交于 2020-01-02 09:23:08
问题 I have a NodeJs application and MySQL database. I have deployed nodejs application in google cloud and created MySQL database in google cloud and connected to nodejs application i am able deploye the application successfully but application not able to connect to cloud mysql dayabase. But when i am trying to connect cloud mysql from my local mysql workbench, it's successfully connecting to database. and i am able to connect cloud mysql database from local nodejs application but i am not able

GAE: Trouble with push to deploy

☆樱花仙子☆ 提交于 2020-01-02 09:21:01
问题 I have troubles with push to deploy to GAE today: me:default me$ git push origin master Counting objects: 7, done. Delta compression using up to 4 threads. Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 376 bytes | 0 bytes/s, done. Total 4 (delta 3), reused 0 (delta 0) remote: Scanning pack: 100% (4/4), done. remote: Storing objects: 100% (4/4), done. remote: Processing commits: 100% (1/1), done. remote: Triggering release (if applicable)... To https://source.developers

Appengine cloud endpoint messages and iOS Core Data

荒凉一梦 提交于 2020-01-02 09:12:42
问题 I have an endpoint message from Google Cloud Endpoint that I would like to persist in iOS Core Data. The endpoint message look like this .h #if GTL_BUILT_AS_FRAMEWORK #import "GTL/GTLObject.h" #else #import "GTLObject.h" #endif @class GTLFarmercloudendpointChicken; @class GTLFarmercloudendpointPig; @class GTLFarmercloudendpointCow; // ---------------------------------------------------------------------------- // // GTLFarmercloudendpointFarmer // @interface GTLFarmercloudendpointFarmer :

Google App Engine backend with Google Cloud Messaging

谁说胖子不能爱 提交于 2020-01-02 09:11:23
问题 I'm trying out a GAE based backend using the sample code on the page below: https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/GcmEndpoints Have been able to deploy the backend and I can view & execute the APIs on API explorer through appspot.com link - project-id.appspot.com When I execute the client app (Android based) and call regService.register(regId).execute(); On the server side I get the following log entry on Google Developer Console - "POST /registration

Undocumented Managed VM task queue RPCFailedError

六眼飞鱼酱① 提交于 2020-01-02 08:35:40
问题 I'm running into a very peculiar and undocumented issue with a GAE Managed VM and Task Queues. I understand that the Managed VM service is in beta, so this question may not be relevant forever, but it's definitely causing me lots of headache now. The main symptom of the issue is that, in certain (not completely known to me) circumstances, I'm seeing the following error/traceback: File "/home/vmagent/my_app/some_file.py", line 265, in some_ndb_tasklet res = yield some_task.add_async('some-task

Flattening nested structs leads to a slice of slices

﹥>﹥吖頭↗ 提交于 2020-01-02 08:04:17
问题 So I have a struct like this type Bus struct { Number string Name string DirectStations []Station // Station is another struct ReverseStations []Station } and I'm trying to store an instance of this to the Datastore: key := datastore.NewKey(c, "Bus", bus.Number, 0, nil) _, err := datastore.Put(c, key, &bus) but I'm getting the error datastore: flattening nested structs leads to a slice of slices: field "DirectStations" How does one solve this? Edit: Turns out you can't have a slice of struct,

Want to create apps for google glass.

梦想的初衷 提交于 2020-01-02 07:46:05
问题 I want to create a new app from the beginning in eclipse using java. I have android sdk, Google app engine, maven with my eclipse. Then how I start? Google quick start tutorial is little bit clumsy. I just want to make a timeline card and want to pass value "Hello World". Then want to view from my Google glass. 回答1: Update: GDK Preview 11/19/13 https://developers.google.com/glass/develop/gdk/index And Finally: here is how to hello world in Glass.. Create a basic hello world apk. Install the

What is producing “405 Method Not Allowed” in this python code (google app engine)?

有些话、适合烂在心里 提交于 2020-01-02 07:33:08
问题 I'm a python newbie and I'm trying to build an app copying step by step what was taught earlier in my class, but I'm getting the "405 Method Not Allowed" error. Here what the professor did: Here what I did: Could someone point me what in the code below is the cause of this error "405 Method Not Allowed"? I can not see difference between what I did and what the professor taught. The indentation is also ok (here is the main.py file https://docs.google.com/open?id=0B8TXLR_e14aCVDFfdlpYSU9DNDg).

How does the warmup service work in python google app engine?

走远了吗. 提交于 2020-01-02 07:25:31
问题 Can someone give an example of how the warmup inbound service works in the python runtime of Google App Engine? I've read this: http://code.google.com/appengine/docs/python/config/appconfig.html#Inbound_Services, but it doesn't give me much of an example after the GET request is sent (I can't seem to ever pick it up) My app.yaml looks like this: application: whatevs version: 1 runtime: python api_version: 1 builtins: - datastore_admin: on inbound_services: - warmup handlers: - url: /static