graphql-flutter icon indicating copy to clipboard operation
graphql-flutter copied to clipboard

Subscription error - start received before the connection is initialised

Open sokolej79 opened this issue 3 years ago • 4 comments

Error 'start received before the connection is initialised' happens when websocket is connecting, but not yet conected and internet turned on. Use case: -turn off internet, websocket error not connected is raised after inactivityTimeout seconds in SocketClientConfig (default 30 seconds) -error happen only if inactivityTimeout is reached and socket disconnected -turn internet on again and subscribe to subscriptions, it will throw error: start received before the connection is initialised -subscriptions will not reconnect after this error

sokolej79 avatar Jun 09 '21 15:06 sokolej79

We see this problem on the initial connection as well: #934

thomas-ferchau avatar Jul 09 '21 09:07 thomas-ferchau

I will be on this issue and try to reproduce it, we are not happy with issues like this that are not able to reproduce the problem, but in this case, is our fault that we have no integration testing.

So, this can take a little bit because I'm building the integration architecture, if you want see the status it is available here https://github.com/vincenzopalazzo/keep-safe-graphql

vincenzopalazzo avatar Jun 28 '22 00:06 vincenzopalazzo