google-app-engine

How to locally unit test python 3 app engine application?

為{幸葍}努か 提交于 2020-02-24 14:34:43
问题 I have testbed setup locally to test python2.7 based app engine application. As part of the python3 migration activity, I am wondering how do I setup the app engine testbed. It seems I can't use my existing python2.7 testbed because of the changes in app engine libraries. Can anybody help me in setting it up? 回答1: I couldn't find any relevant doc for the new AppEngine 3 environment and the testbed package. According to the documentation in the python docs for AppEngine the testbed package

How to locally unit test python 3 app engine application?

一个人想着一个人 提交于 2020-02-24 14:30:14
问题 I have testbed setup locally to test python2.7 based app engine application. As part of the python3 migration activity, I am wondering how do I setup the app engine testbed. It seems I can't use my existing python2.7 testbed because of the changes in app engine libraries. Can anybody help me in setting it up? 回答1: I couldn't find any relevant doc for the new AppEngine 3 environment and the testbed package. According to the documentation in the python docs for AppEngine the testbed package

Using an enum contained in a Cloud Endpoint model on a Android client

折月煮酒 提交于 2020-02-24 12:09:33
问题 I'm trying to implement an enum in a entity called CargoWrapper. In my android app I'm constructing a CargoWrapper object to send to an endpoint method, and then calling my CargoWrapper setters to set the instance varialbes. One of CargoWrappers instance variables is an enum and it's indexed. The only methods generated for my front end are the setter and getters, I can't see the enum. Does anyone know how to set the enum instance variable from a android client, seems like it should be very

Using an enum contained in a Cloud Endpoint model on a Android client

回眸只為那壹抹淺笑 提交于 2020-02-24 12:06:48
问题 I'm trying to implement an enum in a entity called CargoWrapper. In my android app I'm constructing a CargoWrapper object to send to an endpoint method, and then calling my CargoWrapper setters to set the instance varialbes. One of CargoWrappers instance variables is an enum and it's indexed. The only methods generated for my front end are the setter and getters, I can't see the enum. Does anyone know how to set the enum instance variable from a android client, seems like it should be very

Using an enum contained in a Cloud Endpoint model on a Android client

懵懂的女人 提交于 2020-02-24 12:06:31
问题 I'm trying to implement an enum in a entity called CargoWrapper. In my android app I'm constructing a CargoWrapper object to send to an endpoint method, and then calling my CargoWrapper setters to set the instance varialbes. One of CargoWrappers instance variables is an enum and it's indexed. The only methods generated for my front end are the setter and getters, I can't see the enum. Does anyone know how to set the enum instance variable from a android client, seems like it should be very

Download an old version of Google App Engine SDK

余生颓废 提交于 2020-02-24 10:44:27
问题 Where can I find for download an old GAE SDK, say 1.9.15 ? I need to find out coverage and maybe use 3rd party API, which do not work well with the recent version. 回答1: It depends if the respective SDK is still officially supported or not. Both kinds are available in the appengine-sdks GCS bucket. No longer supported SDKs (like the 1.9.15 one you're seeking) are available in the deprecated folder. Note that they may be under a subdirectory named as the version number without the dots, i.e.

App engine: I'm seeing 500 status and 204 error code

一世执手 提交于 2020-02-24 05:37:33
问题 I'm seeing a lot of requests with 500 response code. There are only one line on file log: A problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used for the next request to your application. (Error code 204) Also, I can see a weird appengine's auto log line. I'm using Python 2.7 with threading on and 5 idle instances: 190.210.97.5 - - [04/Sep/2015:10:00:21 -0700] "POST /api/v1/ecclaro/sondeos/event HTTP/1.1" 500 0

App engine: I'm seeing 500 status and 204 error code

断了今生、忘了曾经 提交于 2020-02-24 05:35:10
问题 I'm seeing a lot of requests with 500 response code. There are only one line on file log: A problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used for the next request to your application. (Error code 204) Also, I can see a weird appengine's auto log line. I'm using Python 2.7 with threading on and 5 idle instances: 190.210.97.5 - - [04/Sep/2015:10:00:21 -0700] "POST /api/v1/ecclaro/sondeos/event HTTP/1.1" 500 0

BigQuery UI - Datasets missing

。_饼干妹妹 提交于 2020-02-24 04:31:35
问题 I have a weird issue with my BigQuery UI (going on https://bigquery.cloud.google.com/queries/my-project-name). I don't know why, but I see no datasets for my projects, when I'm fully aware they exist. My code can still hit these datasets and their tables. There is just no way for me to see them. In the UI itself, I can still query them if I type the whole query by hand, but being able to see my structure for my schema could be helpful. When I check my network tab in the developer tools on

(gcloud.app.deploy) Error Response: [13] Unexpected Error. ()

天涯浪子 提交于 2020-02-23 05:53:50
问题 I'm unable to deploy with the App Engine (Java Flexible) and receive only the information in the header, which is not very informative. I've tried to deploy the helloworld-servlet sample app (https://github.com/GoogleCloudPlatform/getting-started-java/tree/master/helloworld-servlet) using the tutorial just to really keep it simple but I still get the same fault. Here is the laterm, failing, part of the log (with http-logging turned on): [INFO] GCLOUD: -- headers start -- [INFO] GCLOUD: