Skip to main content

All Questions

1 vote
0 answers
121 views

Why is my django-channels project not able to connect to Websockets in my Heroku deployed site?

I've been stuck at this for daaaays now and I realise that solution is probably simple but I no matter how much I read here and try I get the same error... When loading the chats part of my site I get ...
Marelius Moen's user avatar
1 vote
0 answers
637 views

WebSocket connection to 'url' failed

I just deployed a django project that uses djagno channels in heroku.. when I try to create a websocket connection form http://localhost:3000/ to the url, I am getting connection to websocket failed ...
Sachin Bhattarai's user avatar
0 votes
1 answer
1k views

How to deploy django app with channels and websocket to Heroku?

I'm creating messanger. I met a need to deploy my app to heroku. My config/settings.py from pathlib import Path from datetime import timedelta import os BASE_DIR = Path(__file__).resolve().parent....
peter ignatiev's user avatar
0 votes
1 answer
516 views

Issue deploying Django/websocket/redis project to heroku

I have a Django project, which is running fine on my machine, that uses redis and a couple of workers to utilize websockets and give constantly updated subway times. It works fine on my machine, but I'...
Jed Godsey's user avatar
7 votes
3 answers
4k views

Websockets with Django Channels on Heroku

I am trying to deploy my app to heroku. The app has a simple chatting system that uses Websockets and django channels. When I test my app using python manage.py runserver the app behaves just as ...
Fabian Omobono's user avatar
1 vote
1 answer
2k views

How to resolve “Error during WebSocket handshake: Unexpected response code: 503” error in a Django Channels Heroku app?

The error in the console : app.e05f6d1a6569.js:105 WebSocket connection to 'wss://domecode.com/wss?session_key=${sessionKey}' failed: Error during WebSocket handshake: Unexpected response code: 503 ...
Roast Biter's user avatar
0 votes
0 answers
171 views

Django channel 2 routing issue when pushed to heroku

I have a wsgi project with added asgi/channel component in it. When I run it in python3 manage.py runserver, I am able to get websocket connection when I use a websocket tester on it with ngrok.io. My ...
Hyperian's user avatar
  • 129
4 votes
1 answer
2k views

Daphne rejects all remote requests

I have a project where I use channels and locally everything worked well but when I deployed on Heroku, I got 403 each time I tried to connect. At first I thought the problem was with Heroku as I ...
Ken4scholars's user avatar
  • 6,226
0 votes
0 answers
846 views

Error during WebSocket handshake with user endpoint once Django Channels app is deployed

I'm trying to set up a websocket connection at the user level in my django app for receiving notifications. prod is https so need to use wss. Here is the js: $( document ).ready(function() { socket ...
Chris B.'s user avatar
  • 1,565