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

WebSocket handshake: Unexpected response code: 400 #231

Open
bgbraga opened this issue Mar 21, 2020 · 5 comments
Open

WebSocket handshake: Unexpected response code: 400 #231

bgbraga opened this issue Mar 21, 2020 · 5 comments
Labels
environment-deploy This kind of issue is related to environment deploy good first issue kind: bug Something isn't working

Comments

@bgbraga
Copy link

bgbraga commented Mar 21, 2020

Description

Browser / Javascript Console Error:
morpheus-526f73e90268c8a4ff10.js:54 WebSocket connection to 'wss://matrix...........&transport=websocket&sid=....... failed: Error during WebSocket handshake: Unexpected response code: 400

Steps to Reproduce

  1. Deploy matrix to GCP Cloud Run
  2. Use matrix
  3. See Browser Console Log

Possible Solution

Have you tested matrix in another GCP (App Engine, GKE) or AWS environment?
Any steps or concerns about deployment?

@juliemar
Copy link
Contributor

Hi, @bgbraga thanks for this report.

In our production environment, we are running in GCP using Kubernetes and we don't have this error. But I just deployed using a 'Google Cloud Button' in the README.md file in the us-central1 region and in the console I can see the same error.

failed: Error during WebSocket handshake: Unexpected response code: 400

But I notice the socket.io change to long pulling connection way and the main features are working well.

In your environment, is something not working well?

@juliemar juliemar added kind: bug Something isn't working environment-deploy This kind of issue is related to environment deploy labels Mar 21, 2020
@bgbraga
Copy link
Author

bgbraga commented Mar 21, 2020

I can't invite someone to meeting room. I don't know if it is related with WebSocket.

At this medium post ( that now I'm seeing that you as the author ;) ) I see some options like GET menu that is not appearing to me.
https://medium.com/rd-shipit/matrix-d4cfc4ad4c75

Do you suggest me to forgot "Google Cloud Button" for a while and deploy using GKE?
Are you using GKE standard or Cloud Run for GKE?

@juliemar
Copy link
Contributor

juliemar commented Mar 21, 2020

I can't invite someone to meeting room. I don't know if it is related with WebSocket.

This function is not supported in the Morpheus layout. There is an issue reporting this problem :)

Do you suggest me to forgot "Google Cloud Button" for a while and deploy using GKE?

You can continue using the "Google Cloud Button" for deploy in Google Cloud Run.

Are`` you using GKE standard or Cloud Run for GKE?

In the Resultados Digitais, we are using GKE and we created on Spinnaker our pipeline deploy

@bgbraga
Copy link
Author

bgbraga commented Mar 21, 2020

Ok. I comment there to see if there a way to use the previous layout instead of Morpheus. Thanks

@igortg
Copy link

igortg commented May 13, 2020

Same issue here.

Deployed on-premise using Docker. #matrix work just fine besides some users keeping getting disconnected (which is somewhat annoying since the "enter room" notification keeps popping up all the time).

Great tool anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
environment-deploy This kind of issue is related to environment deploy good first issue kind: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants