Re: Django with Channels 2.1.1 Error During WebSocket handshake 404

2018-11-17 Thread Robert Fox
I managed to get it working, turns out I forgot to install and configure Redis. I now have a working web app with channels. On Saturday, November 17, 2018 at 5:29:30 PM UTC-8, Robert Fox wrote: > > Thank you Andrew, I have now configured Nginx to route /ws/ to port 9000 > where Daphne is configu

Re: Django with Channels 2.1.1 Error During WebSocket handshake 404

2018-11-17 Thread Robert Fox
Thank you Andrew, I have now configured Nginx to route /ws/ to port 9000 where Daphne is configured. This has fixed my 404 handshake error and now I have a handshake error 500. Any thoughts? On Friday, November 16, 2018 at 10:35:07 PM UTC-8, Andrew Godwin wrote: > > You cannot use gunicorn to ru

Re: Django with Channels 2.1.1 Error During WebSocket handshake 404

2018-11-16 Thread Andrew Godwin
You cannot use gunicorn to run WebSockets or other async code - you need an ASGI server, like Daphne or uvicorn. Switch to one of those and it should start working. Andrew On Fri, Nov 16, 2018 at 8:11 PM Robert Fox wrote: > I am working on a project using Django and Channels 2.1.1. Everything i