Websocket disconnections Unexpected Status of SSLEngineResult after an unwrap() operation-code 1006

Hello,
I am using Java Tomcat Websocket Client to connect to your Websocket API, but i am seeing disconnections from time to time with the error “Unexpected Status of SSLEngineResult after an unwrap() operation” and code “1006”.
I have implemented reconnection mechanism and it works fine, but i am trying to figure out why these disconnections occur in the first place. I am not seeing any issues with the pods restarting or network issues as the pods are hosted in AWS Kubernetes.
Any ideas why this is happening and how it can be addressed?

Hi @alex10! Welcome to the Cloud forum! Thank you for choosing Coinbase cloud APIs. Before we proceed with helping you on this, can you please confirm once if you have raised a ticket regarding this with us already? Looking forward for your response on this.

1 Like

Yes i have raised a ticket regarding this issue already. Let me know how it makes sense how to proceed further

Hi,

I noticed this issue happening continuously again.

2023/12/03 07:58:02.962869 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 07:59:19.183868 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:00:35.402344 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:01:51.664645 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:03:07.869120 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:04:24.082707 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:05:40.307165 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:06:56.524471 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:08:12.738667 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:09:28.955005 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:10:45.170441 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:12:01.387035 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:13:17.597731 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:14:33.814399 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:15:50.032635 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:17:06.242914 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:18:22.463289 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:19:43.700859 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:20:59.919377 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:22:16.135102 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:23:32.362424 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:24:48.582596 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:26:04.787500 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:27:20.995821 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:28:37.203688 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:29:53.418133 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF
2023/12/03 08:31:09.628138 closing the websocket connection: websocket: close 1006 (abnormal closure): unexpected EOF

Please ignore my message. Looks like 1006 error occurs when websocket is opened, but not subscribed to any channels for some time.