google-app-engine

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

Google App Engine two ports on same application

生来就可爱ヽ(ⅴ<●) 提交于 2020-08-11 07:07:12
问题 I want to run a node js application on Google App Engine but my application is currently running two protocols, on two different ports. One of them is the port 8080 (which is required to work on Google App Engine) and the other one is 1883, a mqtt server. Looking the documentation, I couldn't find anything to make this works, actually, the server starts without errors but of course I can't connect to the port 1883, only the http and https. I need to know if this is possible at all and if is,

Google App Engine two ports on same application

元气小坏坏 提交于 2020-08-11 07:06:29
问题 I want to run a node js application on Google App Engine but my application is currently running two protocols, on two different ports. One of them is the port 8080 (which is required to work on Google App Engine) and the other one is 1883, a mqtt server. Looking the documentation, I couldn't find anything to make this works, actually, the server starts without errors but of course I can't connect to the port 1883, only the http and https. I need to know if this is possible at all and if is,

how to increase the “soft memory limit” for google app engine beyond 2gb

谁说胖子不能爱 提交于 2020-08-11 03:59:11
问题 I am exceeding the soft memory limit in google app engine (4 to 6 gb, soft limit is set at 2gb) by using this app yaml file: runtime: python37 service: snow instance_class: F4_1G resources: cpu: 1 memory_gb: 16 disk_size_gb: 20 It appears the resources memory_gb is not related to the "soft limit" memory. When booting up my app, I need to train an ML model that takes around 4 to 6gb memory. Is there any other way to increase the memory during app deployment? 回答1: This is because you are trying

how to increase the “soft memory limit” for google app engine beyond 2gb

百般思念 提交于 2020-08-11 03:58:26
问题 I am exceeding the soft memory limit in google app engine (4 to 6 gb, soft limit is set at 2gb) by using this app yaml file: runtime: python37 service: snow instance_class: F4_1G resources: cpu: 1 memory_gb: 16 disk_size_gb: 20 It appears the resources memory_gb is not related to the "soft limit" memory. When booting up my app, I need to train an ML model that takes around 4 to 6gb memory. Is there any other way to increase the memory during app deployment? 回答1: This is because you are trying

How to limit access to google app engine flask endpoints to just application code (or app engine service accounts)

非 Y 不嫁゛ 提交于 2020-08-10 23:06:06
问题 Currently building an app on app engine standard environment, with python 3.7 and the flask framework. I need to schedule some tasks which will require the app to run several sensitive endpoints periodically. I want to limit access to these endpoints to the application itself, preventing (non-admin) users from accessing these. In the Python 2 version of app engine, it is possible by specifying login: admin in the app.yaml file like so: # app.yaml for google app engine standard env python 2

Error connecting Google AppEngine Django with SQL 2nd generation instance?

∥☆過路亽.° 提交于 2020-08-09 12:24:35
问题 I want to migrate my site from a First to a Second Generation Cloud SQL instance, this is the old config: DATABASES['[DATABASE_NAME]'] = { 'ENGINE': 'google.appengine.ext.django.backends.rdbms', 'INSTANCE': '[PROJECT_ID]:[INSTANCE_ID_1stGEN]', 'NAME': '[DATABASE_NAME]', 'USER': [MY_USER], 'PASSWORD': [MY_PASSWORD], } This works fine, now I'm trying with this code: DATABASES['[DATABASE_NAME]'] = { 'ENGINE': 'django.db.backends.mysql', 'HOST': '/cloudsql/[PROJECT_NAME]:[REGION]:[INSTANCE_ID]',