# ApolloWebSocket.WebSocketError

**URL:** <https://community.apollographql.com/t/apollowebsocket-websocketerror/8066>\
**Category:** Client SDKs\
**Tags:** client, ios\
**Created:** [January 8, 2025, 7:42pm UTC](https://community.apollographql.com/t/apollowebsocket-websocketerror/8066 "2025-01-08T19:42:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yarden](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/yarden/32/5450_2.png) [@yarden](https://community.apollographql.com/u/yarden)\
**Post date:** [January 8, 2025, 7:42pm UTC](https://community.apollographql.com/t/apollowebsocket-websocketerror/8066/1 "2025-01-08T19:42:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![calvincestari](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/calvincestari/32/339_2.png) [@calvincestari](https://community.apollographql.com/u/calvincestari)\
**Post date:** [January 8, 2025, 11:45pm UTC](https://community.apollographql.com/t/apollowebsocket-websocketerror/8066/2 "2025-01-08T23:45:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![yarden](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/yarden/32/5450_2.png) [@yarden](https://community.apollographql.com/u/yarden)\
**Post date:** [January 9, 2025, 5:58am UTC](https://community.apollographql.com/t/apollowebsocket-websocketerror/8066/3 "2025-01-09T05:58:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![calvincestari](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/calvincestari/32/339_2.png) [@calvincestari](https://community.apollographql.com/u/calvincestari)\
**Post date:** [January 9, 2025, 5:44pm UTC](https://community.apollographql.com/t/apollowebsocket-websocketerror/8066/4 "2025-01-09T17:44:39Z")

</div>

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.
