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

Subscription not created, errors? How to debug? #274

Open
reptillicus opened this issue Aug 14, 2018 · 0 comments
Open

Subscription not created, errors? How to debug? #274

reptillicus opened this issue Aug 14, 2018 · 0 comments

Comments

@reptillicus
Copy link

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?

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

1 participant