Daphne is a HTTP, HTTP2 and WebSocket protocol server for ASGI, and developed to power Django Channels.
Questions tagged [daphne]
259 questions
2
votes
1 answer
Possible to serve Django Channels app only using Nginx and Daphne?
I was under the assumption that I could run a Django Channels app using only Daphne (ASGI) and Nginx as a proxy for my Django app to begin with.
The application would be running with Daphne on 127.0.0.1:8001
However, I am running into a 403…

Trilla
- 943
- 2
- 15
- 31
2
votes
1 answer
Nginx: What is causing this 301 redirect?
I still don't know why my webpage is showing
myapp.com redirected you too many times.
Nginx is only used as a proxy for my django channels application, which is running with daphne.
Nginx is running with no errors.
myapp systemd[1]: Starting A high…

Trilla
- 943
- 2
- 15
- 31
2
votes
1 answer
Django + Channels + Daphne + Caddy + Admin File Upload = 413 Error
I have a Django web application that is deployed, in production, with Caddy. I use Caddy as a reverse proxy pointing to daphne which is pointing to my Django app. However, when I try to upload a 5MB file to the django admin portal in production I…

RubyJ
- 193
- 2
- 16
2
votes
1 answer
Django Daphne large file uploads
I have a Django web application that uses Channels and Daphne for websocket communication. All of my websocket stuff is working properly without any issues.
My trouble comes from the fact that my server also allows me to upload files to the server.…

FoamyGuy
- 46,603
- 18
- 125
- 156
2
votes
0 answers
Unable to run daphne from inside virtualenv
I am trying to run daphne installed inside the virtualenv and the following are the errors:
Traceback (most recent call last):
File "/path-to-virtualenv/bin/daphne", line 7, in
from daphne.cli import CommandLineInterface
File…

Adarsh
- 3,273
- 3
- 20
- 44
2
votes
2 answers
Daphne High CPU Usage with Channel 2 and Redis Layer
I am a Django developer, i have recently build a messaging app using Channels 2 and Redis. For each conversation i am creating a group and adding all the participant to the group every time when one reconnect.
I am also using workers for channels…

Saadullah Naeem
- 21
- 2
2
votes
0 answers
AWS - WebSockets not connected over HTTPS
i have django web application deployed on aws elastic beanstalk
and i am using websockets in part of it also
,i have installed application load balancer which is supposed to support websockets by default…

mohamed.alsum
- 53
- 1
- 7
2
votes
2 answers
Django Channels/Daphne Internal Server Error "'dict' object is not callable"
I have received this Error when connecting to my site as it is running channels.
2018-03-25 20:59:19,049 - ERROR - http_protocol - Traceback (most recent call last):
File…

Yalnix
- 135
- 1
- 11
2
votes
1 answer
Django signals not working with channels in multicontainer setup
I have django app and implementing websocket support with channels and channels api. I am using demultiplexer with bindings to my models. For example when i save a model it will send the change to my open websocket connection.
Everything works OK if…

Mazel Tov
- 2,064
- 14
- 26
2
votes
1 answer
Daphne Django file upload size limitations
I am using Daphne for both socket and http connections. I am running 4 worker containers and running everything locally right now in a docker container.
My daphne server fails if I try to upload a file that is 400MB. It works fine for small files…

tinyhook
- 342
- 3
- 15
2
votes
0 answers
Remote Debugging Visual Studio Code, Django, Daphne, Daphne Workers running in Docker Containers
Just started using visual studio code for python development and I like it so far. I am having issues doing remote debugging in a django app running on docker. Was hoping someone would point me in the right direction to setup V.S debugging in django…

tinyhook
- 342
- 3
- 15
2
votes
2 answers
Daphne not listening to websockets
I have a webapp written with django-channels+celery that uses websockets for client-server communication. After testing it running daphne, the celery worker and redis on my host machine I decide to encapsulate everything with docker-compose to have…

Valerio Formato
- 83
- 7
2
votes
1 answer
Django Channels + Elastic Beanstalk
I've set up an Application load balancer that redirects /ws/ requests to port 5000 where I have Daphne running along with 4 workers (that reload via Supervisord). However, in the Chrome console I get the error
WebSocket connection to…

Faris Sbahi
- 646
- 7
- 15
1
vote
0 answers
issue when using django(daphne) and scrapy together
Im having issues getting my scrapy spider to work with django when using daphne. i noticed that when i use the normal wsgi server ie. without adding daphne to the list of installed apps, everything works fine as expected. but with daphne, my spider…

kizii
- 11
- 2
1
vote
1 answer
Daphne ModuleNotFoundError: No module named
I'm unable to get the Daphne server running. It always fails with the following error:
Traceback (most recent call last):
File "/usr/local/bin/daphne", line 8, in
sys.exit(CommandLineInterface.entrypoint())
File…

Neo
- 49
- 12