Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jaguarulises opened this issue Jan 2, 2017 · 5 comments

Comments

@jaguarulises
Copy link

[10] [ERROR] Error handling request /socket.io/?EIO=3&transport=websocket
Traceback (most recent call last):
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/async.py", line 52, in handle
self.handle_request(listener_name, req, client, addr)
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/async.py", line 112, in handle_request
resp.close()
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/http/wsgi.py", line 418, in close
self.send_headers()
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/http/wsgi.py", line 334, in send_headers
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/http/wsgi.py", line 315, in default_headers
tosend = self.default_headers()
elif self.should_close():
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/http/wsgi.py", 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,
-JaguarUlises.

@benoitc
Copy link
Owner

benoitc commented Jan 3, 2017

which worker? Did you tried the latest master?

@jaguarulises
Copy link
Author

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.

@benoitc
Copy link
Owner

benoitc commented Jan 27, 2017

did you try the latest master?

@stefaang
Copy link
Contributor

stefaang commented Feb 23, 2017

This is fixed with #1406
Duplicate of #1210

@jaguarulises
Copy link
Author

Thank you guys for your time. I appreciate your work. (y)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants