Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED #64

Open
valentinc94 opened this issue Jun 13, 2020 · 2 comments

Comments

@valentinc94
Copy link

  • django-private-chat version:
  • Django version: 2.2
  • Python version: 3.7
  • Operating System: Instance of AWS server

Description

I have a project in production and I already made the devil but
when i enter the chat it comes out
failed: Connection establishment failed: net :: ERR_CONNECTION_REFUSED

the question is that I have the stage like this

CHAT_WS_SERVER_HOST = '0.0.0.0'
CHAT_WS_SERVER_PORT = 8080
CHAT_WS_SERVER_PROTOCOL = 'wss'
SESSION_COOKIE_AGE = 12096000

What I Did

if in chat ws_server_host I put the ip of the aws server it gives me an error of address bone that I cannot use it

error while attempting to bind on address ('34. *. *. * ', 8080): cannot assign requested address

and obviously when trying to copy I get WebSocket is already in CLOSING or CLOSED state.

I have tried various solutions but I resort here. I hope for a reply soon, thanks for your help.

@ledzgio
Copy link

ledzgio commented Oct 7, 2020

Have you found a solution? I am facing the same issue.

@nortigo
Copy link

nortigo commented Dec 4, 2020

Any solutions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants