Answer the question
In order to leave comments, you need to log in
500 ISE after adding channels to project?
After adding channels to the working project at all addresses 500 Internal Server Error. Daphne HTTP processing error
Console error code:
Traceback (most recent call last):
File "C:\ministry\venv\lib\site-packages\daphne\http_protocol.py", line 163, in process
self.application_queue = yield maybeDeferred(
TypeError: __call__() missing 2 required positional arguments: 'receive' and 'send'
HTTP GET / 500 [0.00, 127.0.0.1:1189]
Traceback (most recent call last):
File "C:\ministry\venv\lib\site-packages\daphne\http_protocol.py", line 163, in process
self.application_queue = yield maybeDeferred(
TypeError: __call__() missing 2 required positional arguments: 'receive' and 'send'
HTTP GET /favicon.ico 500 [0.00, 127.0.0.1:1189]
import os
import django
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproj.settings')
django.setup()
application = get_asgi_application()
WSGI_APPLICATION = 'myproj.wsgi.application'
ASGI_APPLICATION = 'myproj.asgi.application'
CHANNEL_LAYERS = {
'default': {
'BACKEND': 'channels_redis.core.RedisChannelLayer',
'CONFIG': {
"hosts": [('localhost', 6379)],
},
},
}
Answer the question
In order to leave comments, you need to log in
It looks like Daphne is using ASGI3 and Channels is using ASGI2. The corresponding issue .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question