Skip to content
Advertisement

Protocol error, got “H” as reply type byte

I am trying to use django channels for the first time and i am following the tutorial in the documentation. But when I use python manage.py runserver and try to connect i get this error.

JavaScript

Here is the whole console(I’m using anaconda):

JavaScript

On the frontend js return this error

JavaScript

Here is the whole “pip freeze” list if it he

JavaScript

Here is the python code: consumer.py

JavaScript

routing.py

JavaScript

routing.py in mysite

JavaScript

part of settings.py

JavaScript

Javascript code

JavaScript

Thanks for the help

Advertisement

Answer

Is there any chance you did not have a redis server running on your machine when running your django server? On a mac I did brew install redis and then redis-server and then ran my django server on another terminal window and all worked fine.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement