Sunday, October 16, 2011

App Engine: Switched to Python 2.7 + HRD

I just transitioned 100% of Zombie Highway's traffic from the old app to the new shiny one running Python 2.7 with concurrent requests, all running (by requirement) on the high replication data store.

One error that cropped up moving to the webapp2 framework:
File "/base/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 129, in _StartResponse     raise InvalidResponseError('headers must be str') InvalidResponseError: headers must be str

This was caused by my redirects which were using unicode strings. I simply had to wrap the URL in a str() and all was fine. (to be clear: self.redirect(str([URL])))

Stay tuned for more data on the effect of concurrency and the HRD.

2 comments:

  1. Hi. I like what you do.
    Does this google app engine tag mean that you'll be bringing Zombie Highway over to the android market? Pretty, pretty, please?

    ReplyDelete
  2. Hi Kevin I'm also running into this error message migrating my app to python 2.7. There's hardly any info about it on the net so I suppose I'll ask about it on stackoverflow.com to get some know.how..Cheers - Nick Rosencrantz

    ReplyDelete