Questions tagged [dev-appserver-2]

14 questions
9
votes
1 answer

Running multiple services using dev_appserver.py on different ports

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…
user462455
  • 10,358
  • 18
  • 59
  • 88
9
votes
2 answers

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

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…
7
votes
1 answer

--address=0.0.0.0 argument not working after upgrading to App Engine 1.7.6

I just upgraded to the latest version of App Engine which is usually a good thing and just works. Now when I try to launch dev_appserver (the new multithreaded version) I get: dev_appserver.py: error: unrecognized arguments: --address=0.0.0.0 I've…
philipfc
  • 589
  • 8
  • 18
5
votes
3 answers

Google Cloud storage on dev_appserver on Cloud Shell

I am trying to use Google Cloud Storage from GAE and all works fine when deployed. I am however unable to get the storage to work on the development server that runs on Google Cloud Shell. I am using the cloudstorage API and my understanding it…
4
votes
1 answer

devappserver2, remote_api, and --default_partition

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…
willo
  • 919
  • 4
  • 8
2
votes
1 answer

How to make golang gin work with google app engine?

My GOPATH is $HOME/go, I put my project's source code in $HOME/go/src/myproj and there are two files: app.yaml: application: hello version: 1 runtime: go api_version: go1 handlers: - url: /.* script: _go_app and hello.go package hello import ( …
2
votes
1 answer

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

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:…
1
vote
2 answers

How can check running dev_appserver.py with datastore-emulator

I installed all env for google cloud app engine development server and datastore emulator. And I run the datastore emulator first. gcloud beta emulators datastore start and start dev-appengine server. dev_appserver.py app.yaml How can I check…
1
vote
0 answers

AttributeError: 'FakeFile' object has no attribute 'read_given_key'

For some reason line 171 of loaders.py interprets the file object as a FakeFile Type(f) returns class of type 'google.appengine.tools.devappserver2.python.stubs.FakeFile' Code appengine_config.py import os, sys from google.appengine.ext import…
1
vote
1 answer

Implicit dict to ndb.Model conversion in Python Google App Engine

I ran into this feature (?) where dictionaries are implicitly converted to ndb.Model objects I have following ndb.Model class class DateOfBirth(ndb.Model) day = ndb.IntegerProperty() month = ndb.IntegerProperty() year =…
1
vote
1 answer

AppEngine Paypal integration giving SSLCertificateError on localhost, using Python

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:…
0
votes
1 answer

Why is my query for a structured property failing with BadFilterError?

I don't understand how to filter for structured properties I keep getting there error: BadFilterError: invalid filter: Cannot query for unindexed property author.email. I'm attempting to create an entity in my test setUp. I'm using the code from…
BryanWheelock
  • 11,386
  • 18
  • 60
  • 101
0
votes
1 answer

Google AppEngine Python OSError "too many files open" at launch

I'm using ubuntu 13.10 running in a VM on OSX, python2.7 and GAE 1.8.8. Lauching dev_appserver.py results in the following error: INFO 2013-12-10 03:53:30,046 api_server.py:527] Saving search indexes Traceback (most recent call last): File…
Mohamed
  • 1,008
  • 1
  • 8
  • 14
0
votes
1 answer

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

File & Folder Structure I have the following directory structure. [app_root] | |---[static] | |--- [css] |--- [img] |--- [js] |--- [app] |--- [libs] |--- main.js |--- require.js App.yaml The…
stun
  • 1,606
  • 3
  • 16
  • 23