mitsuhiko/werkzeug — Issue #164: Int SERVER_PORT variable kills server
Author: mjallday
Created: 2012-02-23 18:33:14+00:00
State: open

18:22:30,522 ERROR [gunicorn.error] [MainThread] Error handling request
Traceback (most recent call last):
File "/home/deploy/.virtualenvs/balanced/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 97, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/home/deploy/.virtualenvs/balanced/lib/python2.7/site-packages/flask/app.py", line 1518, in __call__
return self.wsgi_app(environ, start_response)
File "/home/deploy/.virtualenvs/balanced/src/sterling/sterling/middleware/__init__.py", line 20, in __call__
return self.next_app(environ, start_response)
File "/home/deploy/.virtualenvs/balanced/src/sterling/sterling/middleware/method_rewriting.py", line 22, in __call__
return self.next_app(environ, start_response)
File "/home/deploy/.virtualenvs/balanced/lib/python2.7/site-packages/flask/app.py", line 1502, in wsgi_app
with self.request_context(environ):
File "/home/deploy/balanced/balanced/application.py", line 39, in request_context
ctx = super(Application, self).request_context(environ)
File "/home/deploy/.virtualenvs/balanced/lib/python2.7/site-packages/flask/app.py", line 1463, in request_context
return RequestContext(self, environ)
File "/home/deploy/.virtualenvs/balanced/lib/python2.7/site-packages/flask/ctx.py", line 87, in __init__
self.url_adapter = app.create_url_adapter(self.request)
File "/home/deploy/.virtualenvs/balanced/lib/python2.7/site-packages/flask/app.py", line 1349, in create_url_adapter
server_name=self.config['SERVER_NAME'])
File "/home/deploy/.virtualenvs/balanced/lib/python2.7/site-packages/werkzeug/routing.py", line 1171, in bind_to_environ
server_name += ':' + environ['SERVER_PORT']
TypeError: cannot concatenate 'str' and 'int' objects