slackr-graphql-subscriptions-starter-kit icon indicating copy to clipboard operation
slackr-graphql-subscriptions-starter-kit copied to clipboard

Realtime Updates Broken?

Open timarnold opened this issue 7 years ago • 4 comments

I'm not seeing updates when sending messages until I reload the page

timarnold avatar Apr 03 '17 20:04 timarnold

After thoroughly testing this with the latest version of apollo-client, I think the issue lies with their package for updateQuery. I've pushed the change for that package back down to the latest working version. Until we work this out with the Apollo team, please re-clone this repo and use an older version of Apollo.

vning93 avatar Apr 05 '17 05:04 vning93

Any news here? I'am trying to implement the subscriptions. I'am using the official apollo-client subscriptions documentation, but after the setup the chrome dev-tools are just logging:

WebSocket connection to 'wss://eu-west-1.api.scaphold.io/graphql/xxx' failed: WebSocket is closed before the connection is established.
app.js:73 

Since the apollo libraries changed so much that the scaphold examples / documentation are not up to date anymore its quit hard to find a solution for this :(

michaelzoidl avatar Feb 11 '18 16:02 michaelzoidl

This example with not run correctly. I just followed the tutorial, but get errors in the console:

Unhandled (in react-apollo) Error: Network error: Network request failed with status 401 - "" at new ApolloError (eval at <anonymous> (http://127.0.0.1:8888/bundle.js:4304:2), <anonymous>:1804:28)

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8888' is therefore not allowed access. The response had HTTP status code 404.

VM8539:541 There was an error fetching the SSO data. This could simply mean that there was a problem with the network. But, if a "Origin" error has been logged before this warning, please add "http://127.0.0.1:8888" to the "Allowed Origins (CORS)" list in the Auth0 dashboard: https://manage.auth0.com/#/applications/pDRoqCoHSiMDoVkGB2fEvttwmcEqIL-5/settings

This example drew me to scaphold - hope the issue gets fixed.

BrianSandholdt avatar Mar 07 '18 13:03 BrianSandholdt

Having the same websocket error as @michaelzoidl

immanuelrosal avatar Mar 23 '18 15:03 immanuelrosal