Tuesday, June 26, 2018

Re: Websocket connection failed: Error during WebSocket handshake: Unexpected response code: 200


That post is outdated (it's not for Chanels 2), you nginx.conf is wrong, ws isn't location, it's protocol so you web sockets connections are forwarded to unix://myproject/experiment_platform.sock; and this triggers your error

You just need forward all connections to daphne (except /static)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/08278657-b0c7-4bf7-8d08-6bb70ce24f26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment