dev-appserver-2

devappserver2, remote_api, and --default_partition

China☆狼群 提交于 2020-02-01 04:51:05
问题 To access a remote datastore locally using the original dev_appserver I would set --default_partition=s as mentioned here In March 2013 Google made devappserver2 the default development server, and it does not support --default_partition resulting in the original, dreaded: BadRequestError: app s~appname cannot access app dev~appname's data It appears like the first few requests are served correctly with os.environ["APPLICATION_ID"] == 's~appname' Then a subsequent request results in a call to

I can't create a Google Cloud Storage file working on “dev_appserver.py.”

你说的曾经没有我的故事 提交于 2019-12-12 22:11:07
问题 I caught an error as below. INFO ~ module.py:639] default: "HEAD /_ah/gcs/app_default_bucket/multibytes.txt HTTP/1.1" 404 - ERROR ~ gcs.py:99] Expect status [200] from Google Storage. But got status 404. Path: '/app_default_bucket/multibytes.txt'. Request headers: None. Response headers: {'date': 'Mon, 07 Jul 2014 12:59:44 GMT', 'server': 'Development/2.0', 'connection': 'close'}. Body: ''. Extra info: None. Traceback (most recent call last): File "/gcs.py", line 97, in status stat = gcs.stat

Why is GAE dev_appserver only setting ETag, but not Expires HTTP header?

自古美人都是妖i 提交于 2019-12-12 03:03:24
问题 File & Folder Structure I have the following directory structure. [app_root] | |---[static] | |--- [css] |--- [img] |--- [js] |--- [app] |--- [libs] |--- main.js |--- require.js App.yaml The app.yaml config for static_dir handlers are set to different expiration time. application: my-app-name version: 1 runtime: python27 api_version: 1 threadsafe: true default_expiration: "10d" handlers: - url: /favicon\.ico static_files: static/img/favicon.ico upload: static/img/favicon\.ico expiration:

AppEngine Paypal integration giving SSLCertificateError on localhost, using Python

折月煮酒 提交于 2019-12-08 05:53:41
问题 i am integrating paypalrestsdk in my AppEngine project. When, using my local dev_appserver , i try to create a payment on the PayPal sandbox, i have the following error: SSLCertificateError: Invalid and/or missing SSL certificate for URL: https://api.sandbox.paypal.com/v1/oauth2/token So, i have tried to provide the correct pem file, downloading it from here and setting up the correct ssl_option attribute: # Setting up the correct path to the .pem file cert = os.path.join(ROOT, 'certs/api

devappserver2, remote_api, and --default_partition

♀尐吖头ヾ 提交于 2019-12-04 12:50:45
To access a remote datastore locally using the original dev_appserver I would set --default_partition=s as mentioned here In March 2013 Google made devappserver2 the default development server, and it does not support --default_partition resulting in the original, dreaded: BadRequestError: app s~appname cannot access app dev~appname's data It appears like the first few requests are served correctly with os.environ["APPLICATION_ID"] == 's~appname' Then a subsequent request results in a call to /_ah/warmup and then os.environ["APPLICATION_ID"] == 'dev~appname' The docs specifically mention

Running multiple services using dev_appserver.py on different ports

半城伤御伤魂 提交于 2019-11-28 09:19:15
I have an application which has rest end point and web end point. I want to run both REST and WEB service locally using dev_appserver.py I have tried the following dev_appserver.py rest_app.yaml --port=5010 --admin_port=8000 dev_appserver.py web_app.yaml --port=5011 --admin_port=8001 I see the following error on one of my services (rest service) `OperationalError: database is locked` Do I have to do anything special to make sure both those services can read/write to a shared database without any conditions (or similar bad things !!) My goal is to run multiple services (rest and web in this

Running multiple services using dev_appserver.py on different ports

二次信任 提交于 2019-11-27 02:50:17
问题 I have an application which has rest end point and web end point. I want to run both REST and WEB service locally using dev_appserver.py I have tried the following dev_appserver.py rest_app.yaml --port=5010 --admin_port=8000 dev_appserver.py web_app.yaml --port=5011 --admin_port=8001 I see the following error on one of my services (rest service) `OperationalError: database is locked` Do I have to do anything special to make sure both those services can read/write to a shared database without

What is the relationship between Google's App Engine SDK and Cloud SDK?

一曲冷凌霜 提交于 2019-11-26 17:55:59
I'm developing a Google App Engine application and I am encountering references to both an App Engine SDK and a Cloud SDK . How do these two SDKs relate to each other? There is definitely some overlap between the two. There is a dev_appserver.py and appcfg.py is both of them. I can run a development server using dev_appserver.py , and also with gcloud preview app run . Why are there two tools that do the same thing? Is one being deprecated in favor of the other? Is there a roadmap for merging the toolsets, or are they going to be maintained in parallel? Do I need both, or just one? It seems

What is the relationship between Google's App Engine SDK and Cloud SDK?

孤街醉人 提交于 2019-11-26 05:38:46
问题 I\'m developing a Google App Engine application and I am encountering references to both an App Engine SDK and a Cloud SDK. How do these two SDKs relate to each other? There is definitely some overlap between the two. There is a dev_appserver.py and appcfg.py is both of them. I can run a development server using dev_appserver.py , and also with gcloud preview app run . Why are there two tools that do the same thing? Is one being deprecated in favor of the other? Is there a roadmap for merging