Skip to main content

All Questions

0 votes
0 answers
28 views

how to Implement non-blocking, sequential AI moves in a multiplayer chess game in django channels?

I'm developing a website to play a special with kind of chess with React and Django. It pretty much requires two games to be played at the same time. The website allows to add AI players, so the ...
newbiedev3333's user avatar
1 vote
1 answer
97 views

Django Channels on IIS using FASTCGI

I am deploying a Django app using an IIS server. In this Django app, I have implemented Django Channels to use websockets. Locally, everything is working fine with websocket connections, and I am able ...
Simple Sarfi's user avatar
0 votes
1 answer
218 views

error "Failed to execute send on Websocket: Still in CONNECTING state" in Django Channels Production environment using SSL

I'm currently deploying an application using Django Channels in Production environment. The target application is based on the sample app from the official django channel documentation. https://...
Tio's user avatar
  • 978
0 votes
0 answers
56 views

nginx not upgraded to websocket

i have a Kubernetes cluster in which nginx:1.21.6 is running as a proxy. Nginx should upgrade the connection to websocket at path /ws/ and forward it to the service http://dev-websocket:8000. Since ...
Basti G.'s user avatar
  • 431
0 votes
0 answers
63 views

Module not found error with Django Channels

I'm completely new to using channels, but have tried two separate installations, and setups to just get a basic version of channels running and am encountering a small issue. I'm assuming I'm probably ...
AVG's user avatar
  • 1
0 votes
0 answers
38 views

Web Socket don't make connection with Wss /https Django

This is my asgi.py. import os, django from django.core.asgi import get_asgi_application from channels.routing import get_default_application django_asgi_app = get_asgi_application() # from django....
Hannan Ma Lik's user avatar
0 votes
1 answer
97 views

Daphne websocket stop responding after somtime

Project Specs: Django 3.2.4 , Channels 3.0.5 , Channel-redis 3.4.1 , Daphne 3.0.2. I setup a chat system, which communicate using websocket. On page load, everything works fine, but after few seconds ...
Decoder's user avatar
  • 21
0 votes
0 answers
115 views

Can't get Django Channels websockets to connect. Using Django, Daphne and Nginx on Ubuntu 22 with Supervisor

I have been working on getting this figured out for days and I feel like I am close to getting it but I have no idea what to try next. This is how my code is setup: I use Celery to pull data from 2 ...
Dmckim's user avatar
  • 65
0 votes
1 answer
757 views

Websocket connection failed in production. (Nginx, Gunicorn, Daphne) (Django/React)

I am trying to deploy my Django Rest Framework application to production. I have my own server running Debian. I am not new to deploying DRF and React applications and the WSGI part of the application ...
tumpa02's user avatar
  • 78
0 votes
2 answers
596 views

AttributeError in ASGI/Daphne Django problem

I had done this tutorial for WebSocket with Django but I have this problem when I execute "python manage.py runserver": HTTP GET /chat/hello/ 200 [0.01, 127.0.0.1:65009] WebSocket ...
LuisFerchx's user avatar
1 vote
2 answers
1k views

WebSocket dosn't work with postman (django channels)

I have a Django project which I run locally on my mac. And I use channels to create websocket connection. And an interesting thing happened: The web socket works when I try to connect through .html ...
Ihor Kram's user avatar
0 votes
1 answer
1k views

django channels deploying with daphne error Requested setting INSTALLED_APPS, but settings are not configured

Hello I'm following this tutorial https://github.com/mitchtabian/HOWTO-django-channels-daphne to deploy mn django channels app and I'm having problem with starting the daphne. I created the daphne....
Ar So's user avatar
  • 21
1 vote
0 answers
666 views

Django Channels Websocket hanging - WebSocketProtocol took too long to shut down and was killed

Environment: Ubuntu 16.04.6 conda 4.12.0 Apache/2.4.18 (Ubuntu) python==3.8.1 Django==4.0.3 channels==3.0.5 asgi-redis==1.4.3 asgiref==3.4.1 daphne==3.0.2 I am attempting to create a websocket ...
Mike Christensen's user avatar
0 votes
0 answers
2k views

how to setup daphne with nginx with djnago channels for websockets

I have to set up the Django server with WebSockets and HTTP requests. It works fine in my local system. and also on the server without SSL, but when we use the SSL on the server the HTTP request works ...
swapnil gautam's user avatar
1 vote
1 answer
2k views

WebSocket connection to 'wss://...' failed: (Django + Gunicorn + Nginx + Daphne)

I'm getting an error while connecting the websocket. And I have read similar Q&A on stackoverflow but still not working for me. I've been trying all sorts of ways for days but still can't make the ...
N.Tuyen's user avatar
  • 35

15 30 50 per page