Daphne breaks the database connection when I use WebSocketConsumer #1885
Unanswered
LeandreLapidus
asked this question in
Help!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello to you. I hope you are well. I would like to thank you for the work you are doing on this project.
If I come to you, it is to report a small problem.
Indeed, I try to set up a custom chat application. I am currently developing on a Windows 10 machine and for the chat I am using:
- channels==3.0.3
- channels_redis==3.2
- daphne~=3.0
- psycopg2~=2.8
The problem is that when I try to save information in my database, the connection is interrupted beyond my control.
Edit: I tried to follow this tutorial : https://www.youtube.com/watch?v=9jqHWwubnoY&list=PLLRM7ROnmA9EnQmnfTgUzCfzbbnc-oEbZ&index=6
I'm expecting this to save the message in the database before displaying it on the browser. But this is what is sent :
And when i retry the click event on the submit button, it sends back the daphne 500 internal error page. I hope i'm addressing to the good one. I search on the net to find a solution but didn't fix it.
Beta Was this translation helpful? Give feedback.
All reactions