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

WebSocketException: Connection to 'https://<domain>.com:0/hasura/v1/graphql#' was not upgraded to websocket #62

Closed
sharad-paghadal opened this issue Jun 26, 2020 · 3 comments

Comments

@sharad-paghadal
Copy link

Query and mutation are working perfectly, but when it comes to subscription - it throws this error on console.

@sharad-paghadal
Copy link
Author

sharad-paghadal commented Jun 28, 2020

I found temporary solution!

Issue:

  • My hasura is deployed using docker and that is serving by nginx to add https.
  • So my hasura connection url will be like -https://mydomain.com/hasura/v1/graphql
  • In this case it takes 0 as a port, that is causing this issue.

Solution:

  • Using url https://<IP>:<PORT_USED_BY_DOCKER>/hasura/v1/graphql fixed the issue.

This is temporary solution, some one please help me to fix it permanently.
Thanks.

@jeet-ardeshna-stl
Copy link

I was facing the same issue, but I solved it by removing a trailing '/' from the URL. ( '.../graphql/' to '.../graphql')

@raphaelbarbosaqwerty
Copy link

raphaelbarbosaqwerty commented Jan 29, 2021

@sharad-paghadal Hi! What is your back-end? Actually, I got the same problem with Nginx, I found the solution in this Issue. Check on Hasura Documentation too.

@Bwolfs2 Bwolfs2 closed this as completed Aug 11, 2022
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

4 participants