ApolloWebSocket.WebSocketError

who can pls help me I’m try to disconnect several times and i get errors like ApolloWebSocket.WebSocket.WSError.ErrorType.protocolError, message: “Invalid operation”, code: 4400)), kind:
and Subscriber for 6 already exists
what is my mistake?
before I subscribe I cancel the previous subscription
Thanks in advance

Hi @yarden - what version are you using?

I can see we’ve got the protocolError type but cannot find any message for an invalid operation. If the 4400 “invalid operation” error is being returned from the server then you’ll need to check with the backend devs why it’s returning that error.

Thanks for your reply :pray:
So it could be a server error? I thought it is my wrong I am using version 1.7.1

I’m not certain if it is a server error. You should inspect whether you’re getting a response back from the server and if it has that error string in it.

Apollo iOS does have a protocolError type but nothing for “invalid operation”. That’s why I suspect a server-side error.