Daphne is a HTTP, HTTP2 and WebSocket protocol server for ASGI, and developed to power Django Channels.
Questions tagged [daphne]
259 questions
0
votes
1 answer
WebSocket wss:// on SSL with Nginx Gunicorn Daphne Channels Redis
I try to get my Django project running with WebSockets; in the browser console I get the error
WebSocket connection to 'wss://www.xxx.com:8001/ws/asdf/1234/' failed:
settings.py:
CHANNEL_LAYERS = {
"default": {
"BACKEND":…

zeus
- 117
- 7
0
votes
1 answer
daphne run in supervisor returns an error django.core.exceptions.ImproperlyConfigured
why daphne returns an error to me via supervisor
django.core.exceptions.ImproperlyConfigured: Requested setting LOGGING_CONFIG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call…

Akrej
- 31
- 5
0
votes
1 answer
Websockets with Falcon & Daphne behind a K8s Ingress
My Falcon based ASGI app is executed via Daphne and works fine when it is run locally and accessed via localhost. The app is packaged in a container and run in a K8s cluster behind an Ingress. On K8s the app is not running at the root of the domain,…

Achim
- 15,415
- 15
- 80
- 144
0
votes
1 answer
Django Channels error appears in separate Django project (broken pipe error)
I'm relatively new to ASGI and Django Channels, so this is probably a very basic question.
I got ASGI running thanks to Django Channels in one of my Django projects and it works fine. I then want to work on my old project, which doesn't yet use…

Dylan
- 2,315
- 2
- 20
- 33
0
votes
1 answer
Apache Proxy and Daphne : slow connection
I am using Django 3.2.3, Apache and Daphne. Daphne is very slow.
I use Apache like a proxy to send the request to Daphne :
AllowEncodedSlashes On
ServerName mysite.com
ServerAdmin admin@gmail.com
…

Jonathan Le Cornichone
- 342
- 2
- 19
0
votes
1 answer
django channels does not work with more than 20-40 users in one channel
My system: django == 1.11.22, cchannels == 2.1.7, channels-redis == 2.2.1, daphne == 2.2.0, asgiref == 2.3.2
I tried using django pipes to include websockets in my project. The web socket subsystem simply sends system status to administrators and…

dronych
- 21
- 2
0
votes
1 answer
Is it possible to deploy Daphne SSL on EC2 without the need for Nginx?
I'm trying to prototype with Django-channels via Daphne. The structure is shown in the picture. When I deploy it without SSL (wss) everything works normal (it connects, messages are sent, etc). I proceeded to do it with wss locally, with self-signed…

ByteBat
- 337
- 4
- 14
0
votes
1 answer
Django channels doesn't work properly with production environment
i have a really big problem with channels.
when I try to run asgi server in production the problems come up but there is no problem when running in terminal.
first let me show you a little code
class LogConsumer(AsyncConsumer):
async def…

Xeus
- 92
- 1
- 6
0
votes
1 answer
Django Channels App Websocket Connection Failing
I believe I have a similar issue to the one found here
and here.
The gist is that I'm running a Django app with channels on an Amazon-ec2 instance and the websockets are failing to connect.
Most of my code regarding the websockets comes from the…

huitlacoche
- 173
- 1
- 2
- 15
0
votes
1 answer
Running Daphne with DotEnv in a systemd service
I'm using a .env file which contains the configuration for my Django app. I have a systemd service which runs Daphne (similar to what's below)
[Unit]
Description=WebSocket Daphne…

nonamorando
- 1,556
- 2
- 14
- 33
0
votes
1 answer
/bin/sh: 1: exec: gunicorn: not found
I am trying to deploy a simple django app on google cloud app engine. App has basic wsgi and asgi servers where wsgi is serving HTTPS requests and asgi is serving websocket requests.
I am following the google app engine tutorial to deploy the app…

Muhammad Zeeshan
- 470
- 7
- 24
0
votes
0 answers
React Native App not connecting via WebSocket after publishing it on the Play Store
In my application I have implemented real time application with socket and django channels that I deployed with daphne (ws://api.xxxxx.com).
It works perfectly with my react native app in the development mode, where I just connect with javascript…
0
votes
1 answer
How to gracefully handle auto disconnect of Daphne websockets
Daphne has a parameter --websocket_timeout link. As mentioned in the doc,
--websocket_timeout WEBSOCKET_TIMEOUT
Maximum time to allow a websocket to be connected. -1 for infinite.
The socket is disconnected and no further…

Praful Bagai
- 16,684
- 50
- 136
- 267
0
votes
4 answers
Django Channels ASGI - AppRegistryNotReady: Apps aren't loaded yet
Running my project with python manage.py runserver boots it up perfectly using the channels asgi development server, however when running the project with Daphne (daphne project.routing:application) I get the error AppRegistryNotReady: Apps aren't…

rykener
- 711
- 1
- 6
- 16
0
votes
0 answers
Request URL in Django error message does not correspond to the acual request url
I'm building an app with Django and Django-Rest-Framework. The frontend js application makes API calls to the backend. It works well when I test it using python manage.py ruserver but when i test it in a VM similar to my production environment, all…

user1707845
- 21
- 4