Created
October 18, 2016 18:06
-
-
Save wgwz/86367f1a53042bc4ad4935e406780a1e to your computer and use it in GitHub Desktop.
example error running flask-socketio gunicorn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gunicorn -c "python:config.gunicorn" "api:create_app()" | |
[2016-10-18 14:01:37 -0400] [3654] [INFO] Starting gunicorn 19.6.0 | |
[2016-10-18 14:01:37 -0400] [3654] [INFO] Listening at: http://0.0.0.0:8000 (3654) | |
[2016-10-18 14:01:37 -0400] [3654] [INFO] Using worker: eventlet | |
[2016-10-18 14:01:37 -0400] [3657] [INFO] Booting worker with pid: 3657 | |
127.0.0.1 - - [18/Oct/2016:14:01:44 -0400] "GET /api/v1/ HTTP/1.1" 200 3101 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36" in 87173µs | |
127.0.0.1 - - [18/Oct/2016:14:01:44 -0400] "GET /socket.io/?EIO=3&transport=polling&t=1476813704788-0 HTTP/1.1" 200 119 "http://localhost:8000/api/v1/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36" in 782µs | |
127.0.0.1 - - [18/Oct/2016:14:01:44 -0400] "POST /socket.io/?EIO=3&transport=polling&t=1476813704809-1&sid=ac7af57072f74aa49d3c92e79bab9f9e HTTP/1.1" 200 2 "http://localhost:8000/api/v1/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36" in 1340µs | |
127.0.0.1 - - [18/Oct/2016:14:01:44 -0400] "GET /socket.io/?EIO=3&transport=polling&t=1476813704817-2&sid=ac7af57072f74aa49d3c92e79bab9f9e HTTP/1.1" 200 18 "http://localhost:8000/api/v1/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36" in 536µs | |
127.0.0.1 - - [18/Oct/2016:14:01:44 -0400] "GET /socket.io/?EIO=3&transport=polling&t=1476813704919-3&sid=ac7af57072f74aa49d3c92e79bab9f9e HTTP/1.1" 200 4 "http://localhost:8000/api/v1/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36" in 550µs | |
127.0.0.1 - - [18/Oct/2016:14:01:55 -0400] "GET /api/v1/ HTTP/1.1" 200 3101 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36" in 1416µs | |
[2016-10-18 14:01:55 -0400] [3657] [ERROR] Error handling request /socket.io/?EIO=3&transport=websocket&sid=ac7af57072f74aa49d3c92e79bab9f9e | |
Traceback (most recent call last): | |
File "/Users/wizdre/code/envs/fetch_backend_py3/lib/python3.5/site-packages/gunicorn/workers/async.py", line 52, in handle | |
self.handle_request(listener_name, req, client, addr) | |
File "/Users/wizdre/code/envs/fetch_backend_py3/lib/python3.5/site-packages/gunicorn/workers/async.py", line 112, in handle_request | |
resp.close() | |
File "/Users/wizdre/code/envs/fetch_backend_py3/lib/python3.5/site-packages/gunicorn/http/wsgi.py", line 418, in close | |
self.send_headers() | |
File "/Users/wizdre/code/envs/fetch_backend_py3/lib/python3.5/site-packages/gunicorn/http/wsgi.py", line 334, in send_headers | |
tosend = self.default_headers() | |
File "/Users/wizdre/code/envs/fetch_backend_py3/lib/python3.5/site-packages/gunicorn/http/wsgi.py", line 315, in default_headers | |
elif self.should_close(): | |
File "/Users/wizdre/code/envs/fetch_backend_py3/lib/python3.5/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' | |
127.0.0.1 - - [18/Oct/2016:14:01:55 -0400] "GET /socket.io/?EIO=3&transport=websocket&sid=ac7af57072f74aa49d3c92e79bab9f9e HTTP/1.1" 500 - "-" "-" in 54641µs | |
127.0.0.1 - - [18/Oct/2016:14:01:55 -0400] "GET /socket.io/?EIO=3&transport=polling&t=1476813715989-0 HTTP/1.1" 200 119 "http://localhost:8000/api/v1/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36" in 912µs | |
127.0.0.1 - - [18/Oct/2016:14:01:56 -0400] "POST /socket.io/?EIO=3&transport=polling&t=1476813716010-1&sid=c16aca209fc348e7b6ee10be2c8ef7e3 HTTP/1.1" 200 2 "http://localhost:8000/api/v1/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36" in 1382µs | |
127.0.0.1 - - [18/Oct/2016:14:01:56 -0400] "GET /socket.io/?EIO=3&transport=polling&t=1476813716028-2&sid=c16aca209fc348e7b6ee10be2c8ef7e3 HTTP/1.1" 200 18 "http://localhost:8000/api/v1/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36" in 793µs | |
127.0.0.1 - - [18/Oct/2016:14:01:56 -0400] "GET /socket.io/?EIO=3&transport=polling&t=1476813716096-3&sid=c16aca209fc348e7b6ee10be2c8ef7e3 HTTP/1.1" 200 4 "http://localhost:8000/api/v1/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36" in 692µs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment