slackr-graphql-subscriptions-starter-kit
slackr-graphql-subscriptions-starter-kit copied to clipboard
Realtime Updates Broken?
I'm not seeing updates when sending messages until I reload the page
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.
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 :(
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.
Having the same websocket error as @michaelzoidl