Skip to main content

All Questions

0 votes
0 answers
29 views

WebSocket Channels in Django not connecting

I'm struggling why still insist not being connected my WebSocket using Django, I've used laragon as Mysql and I just used my local database, and I just want to try first before saving to database it ...
Henry's user avatar
  • 167
0 votes
0 answers
36 views

How to connect multiple authenticated clients' with Django channels and clients should be connected before opening the channels?

So I'm working on a desktop based app that requires a socket to handle multiple authenticated clients with a Django channel, and clients should be authenticated by the server before opening the ...
Kaumudi Kalikar's user avatar
0 votes
0 answers
23 views

The caller tried using channels rabbitmq on a different event loop than the one it was initialized with

im trying to initialize a queue rabbit consumer, process those message and send it to a websocket in django. But i got the title error. Im new at this kind of stuuf. Can someone explain me how can i ...
Mauricio Avendaño's user avatar
0 votes
1 answer
32 views

Django channels error:- Could not connect to ws://192.168.1.21:8000/ws/sc/,

IMO I think it is unable to find the route /ws/sc route but I dont understand why as I have linked it properly. The error is give when I try to establish a connection using postman Following is the ...
Krattza's user avatar
  • 41
0 votes
1 answer
36 views

Space is not sliced from my text in front-end

So here is my front-end JS code for the keyHandler: let snippet = document.getElementById('snippet'); let remaining = document.getElementById('remaining'); let typed = document.getElementById('typed'...
Hako_Sama's user avatar
0 votes
1 answer
107 views

Django Channels, Set different WebSocket routing patterns for different paths

I am trying to implement a Django Projects with multiple Apps, with multiple Consumers with different WebSocket routing patterns for each paths. Below is my working code, the code works, but is ...
eagele's user avatar
  • 86
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
0 answers
36 views

Issue sending messages to a channel group in Django

I sat up a system with a user, member and team models. What i am trying to achieve with sockets, is for one of the team members to notify everyone on the team about an achievement. Clientside: Svelte ...
catfish's user avatar
  • 63
0 votes
1 answer
111 views

AttributeError: 'set' object has no attribute 'decode'

I started learning Django for a school project and I'm doing a chat project using websocket server, but when reloading the app I get this error even tho I'm not calling decode() anywhere. I'm using ...
user23970573's user avatar
0 votes
1 answer
66 views

django channels took to long to shut down and was killed error in backend

I used django channels in this project and created a consumer in the following code: class WSConsumer(WebsocketConsumer): def connect(self): self.room_name = self.scope["url_route"][&...
Ammar Salahi's user avatar
0 votes
0 answers
23 views

Django channels async websocket group_send not working

I've created an async web socket with the below code: class AgentSessionAsyncConsumer(AsyncJsonWebsocketConsumer): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) ...
Shreya Sharma's user avatar
0 votes
0 answers
39 views

Audio bytes chunks getting corrupted during streaming using Django and Websockets

I am trying to implement an audio streaming transcription service using django and websockets. The implementation works but the chunks get corrupted after some time like after tenth or eleventh chunk ...
Mikehade's user avatar
0 votes
0 answers
38 views

Will I need a consumers.py, asgi,py and routing.py using Tradier's websocket API?

So I'm trying to stream market data via the tradier API with websockets. Here are 2 links to the docs: https://documentation.tradier.com/brokerage-api/streaming/websocket-streaming https://...
chonkrdoggr's user avatar
1 vote
1 answer
277 views

django.core.exceptions.SynchronousOnlyOperation You cannot call this from an async context - use a thread or sync_to_async

I am using Django channels to implemented web sockets. I want to get database queries using ORM inside consumers.py. This is my code: import json from channels.generic.websocket import ...
Simple Sarfi's user avatar
0 votes
0 answers
64 views

Django Channels Custom Middleware Not Being Called

With Django 4 and Channels 4 I have a middleware as follows from channels.middleware import BaseMiddleware class TokenAuthMiddleware(BaseMiddleware): async def __call__(self, scope, receive, send)...
cclloyd's user avatar
  • 8,735

15 30 50 per page
1
2 3 4 5
16