1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Django Websocket Failing right after handshake if using PostgresSql

Discussão em 'Python' iniciado por Stack, Setembro 14, 2024.

  1. Stack

    Stack Membro Participativo

    I developed the application using Django and I used Django channels in it for messages. My websocket connections were working fine as soon as I was using my local db.sqlite3 but when I shifted to using PostgreSQL hosted on AWS RDS, I start getting connection error:

    HTTP GET /community/groups/5/ 200 [5.13, 127.0.0.1:1905]

    WebSocket HANDSHAKING /ws/group/5/ [127.0.0.1:1908]

    HTTP GET /AI/tools-list/ 200 [2.72, 127.0.0.1:1905]

    WebSocket DISCONNECT /ws/group/5/ [127.0.0.1:1908]

    WebSocket HANDSHAKING /ws/notifications/ [127.0.0.1:1913]

    WebSocket DISCONNECT /ws/notifications/ [127.0.0.1:1913]

    Disconnected with close code: 1006

    Note: Sometime, my notification websocket gets connected but group chat websocket never gets connected

    I tried connecting to websocket but it keeps on failing

    Continue reading...

Compartilhe esta Página