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

Subscription does not work for other regions like ap-northeast #591

Open
1 of 7 tasks
huan opened this issue Mar 6, 2018 · 4 comments
Open
1 of 7 tasks

Subscription does not work for other regions like ap-northeast #591

huan opened this issue Mar 6, 2018 · 4 comments

Comments

@huan
Copy link

huan commented Mar 6, 2018

This issue pertains to the following package(s):

  • GraphQL Playground - Electron App
  • GraphQL Playground HTML
  • GraphQL Playground
  • GraphQL Playground Express Middleware
  • GraphQL Playground Hapi Middleware
  • GraphQL Playground Koa Middleware
  • GraphQL Playground Lambda Middleware

What OS and OS version are you experiencing the issue(s) on?

Chrome Browser, Ubuntu 17.10

What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?

https://api.graph.cool/simple/v1/cjdbw710k0zpr0129sv35o79e

What is the expected behavior?

Subscription should work with endpoint address wss://subscriptions.ap-northeast-1.graph.cool/v1/cjdbw710k0zpr0129sv35o79e

What is the actual behavior?

We are using the wrong(default) endpoint address: wss://subscriptions.graph.cool/v1/cjdbw710k0zpr0129sv35o79e

WebSocket connection to 'wss://subscriptions.graph.cool/v1/cjdbw710k0zpr0129sv35o79e' failed: WebSocket is closed before the connection is established.

What steps may we take to reproduce the behavior?

Use PlayGround with a service in the ap-northeast region.

@jameschetwood
Copy link

I had the same issue and switching from shared-ap-northeast-1 to shared-us-west-2 has fixed it.

I also lost days trying to figure out why my subscriptions failed intermittently in my app and switching regions seems to have fixed that too. Needless to say this was extremely frustrating, I think you should put a warning in your docs if this is a known issue.

@huan
Copy link
Author

huan commented Mar 20, 2018

@jameschetwood
Copy link

For me the much larger issue was my subscriptions intermittently failing. Im actually glad this bug exists otherwise I would never have known why!

@huan
Copy link
Author

huan commented Mar 20, 2018

subscriptions intermittently failing?

Maybe you should have a look at this issue too:
apollographql/subscriptions-transport-ws#368 (comment)

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

No branches or pull requests

3 participants