Open reptillicus opened 5 years ago
When subscribing to a notification channel, I'm getting the following error:
cep_prtl_websockets | [DJANGO] WARNING 2018-08-14 16:58:15,925 wsgi_server django.request.__call__:148: WebSocketError: unable to receive websocket message cep_prtl_websockets | Traceback (most recent call last): cep_prtl_websockets | File "/usr/lib/python2.7/site-packages/ws4redis/wsgi_server.py", line 131, in __call__ cep_prtl_websockets | recvmsg = RedisMessage(websocket.receive()) cep_prtl_websockets | File "/usr/lib/python2.7/site-packages/ws4redis/uwsgi_runserver.py", line 31, in receive cep_prtl_websockets | raise WebSocketError(e) cep_prtl_websockets | WebSocketError: unable to receive websocket message cep_prtl_websockets | [pid: 15|app: 0|req: 1/2] 172.20.0.10 () {44 vars in 1052 bytes} [Tue Aug 14 16:41:09 2018] GET /ws/notifications?subscribe-broadcast&subscribe-user => generated 468 bytes in 1026833 msecs (HTTP/1.1 101) 4 headers in 178 bytes (3 switches on core 999) According to the chrome dev tools, the websocket is however open.
cep_prtl_websockets | [DJANGO] WARNING 2018-08-14 16:58:15,925 wsgi_server django.request.__call__:148: WebSocketError: unable to receive websocket message cep_prtl_websockets | Traceback (most recent call last): cep_prtl_websockets | File "/usr/lib/python2.7/site-packages/ws4redis/wsgi_server.py", line 131, in __call__ cep_prtl_websockets | recvmsg = RedisMessage(websocket.receive()) cep_prtl_websockets | File "/usr/lib/python2.7/site-packages/ws4redis/uwsgi_runserver.py", line 31, in receive cep_prtl_websockets | raise WebSocketError(e) cep_prtl_websockets | WebSocketError: unable to receive websocket message cep_prtl_websockets | [pid: 15|app: 0|req: 1/2] 172.20.0.10 () {44 vars in 1052 bytes} [Tue Aug 14 16:41:09 2018] GET /ws/notifications?subscribe-broadcast&subscribe-user => generated 468 bytes in 1026833 msecs (HTTP/1.1 101) 4 headers in 178 bytes (3 switches on core 999)
Also, checking redis, no keys are created afterword
redis-cli KEYS * (empty list or set)
This is running in its own uwsgi container with the following command:
uwsgi --gevent 1000 --workers=2 --http-websockets --http-socket=:9000 --module portal.wsgi_websocket:application
I'm not sure whats going wrong, but I can't get a message to actually propagate. Any suggestions on what to do or how to debug better?
When subscribing to a notification channel, I'm getting the following error:
cep_prtl_websockets | [DJANGO] WARNING 2018-08-14 16:58:15,925 wsgi_server django.request.__call__:148: WebSocketError: unable to receive websocket message cep_prtl_websockets | Traceback (most recent call last): cep_prtl_websockets | File "/usr/lib/python2.7/site-packages/ws4redis/wsgi_server.py", line 131, in __call__ cep_prtl_websockets | recvmsg = RedisMessage(websocket.receive()) cep_prtl_websockets | File "/usr/lib/python2.7/site-packages/ws4redis/uwsgi_runserver.py", line 31, in receive cep_prtl_websockets | raise WebSocketError(e) cep_prtl_websockets | WebSocketError: unable to receive websocket message cep_prtl_websockets | [pid: 15|app: 0|req: 1/2] 172.20.0.10 () {44 vars in 1052 bytes} [Tue Aug 14 16:41:09 2018] GET /ws/notifications?subscribe-broadcast&subscribe-user => generated 468 bytes in 1026833 msecs (HTTP/1.1 101) 4 headers in 178 bytes (3 switches on core 999)
According to the chrome dev tools, the websocket is however open.Also, checking redis, no keys are created afterword
redis-cli KEYS * (empty list or set)
This is running in its own uwsgi container with the following command:
uwsgi --gevent 1000 --workers=2 --http-websockets --http-socket=:9000 --module portal.wsgi_websocket:application
I'm not sure whats going wrong, but I can't get a message to actually propagate. Any suggestions on what to do or how to debug better?