Working with Heroku, Programming in Flask with gunicorn and a little of socketio I have this issue: #1419

jaguarulises opened this Issue Jan 2, 2017 · 2 comments


None yet

2 participants


[10] [ERROR] Error handling request /
Traceback (most recent call last):
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/", line 52, in handle
self.handle_request(listener_name, req, client, addr)
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/", line 112, in handle_request
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/http/", line 418, in close
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/http/", line 334, in send_headers
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/http/", line 315, in default_headers
tosend = self.default_headers()
elif self.should_close():
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/http/", line 238, in should_close
if self.status_code < 200 or self.status_code in (204, 304):
AttributeError: 'Response' object has no attribute 'status_code'

Thanks for reading this,
see you later,

benoitc commented Jan 3, 2017

which worker? Did you tried the latest master?


I have this in mi Procfile:

web: gunicorn -k eventlet main:app

and the eventlet is working fine with the patch, if I write -w 1 in that line, the server goes down.
Only see the issue when the server socketio is working with the java socketio web client.

Thanks for answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment