Socket closed unexpectedly. 0) was reconnecting fine and still does.

Socket closed unexpectedly. js application I had lot of "Error: Socket closed unexpectedly". 8. js Version: "16. js application. We are using AWS ElastiCache. 0) was reconnecting fine and still does. The "ERR_SOCKET_CLOSED" error indicates an unexpected termination of the network connection. Oct 7, 2022 · But I found Error "Socket closed unexpectedly" will happen for each 10 mins after connected with redis . Mar 11, 2022 · Good day! The socket connection closes unexpectedly and doesn't reconnect, my older version of node-redis (2. 16" Redis Server Version: "6. I can only reproduce this on production env. Could you pls tell me why it happened and resolve this issue for me? … Aug 3, 2022 · In my Node. May 27, 2025 · Consider reconnection strategies if a persistent connection is necessary. After reconnect it doesn't print ready anymore. Proper error handling is crucial to prevent crashes and maintain the stability of your Node. This is how I solved it. . Mar 22, 2022 · I got the same issue (Socket Closed Unexpectedly) but only with the remote Redis servers, so I figured out that maybe there is a problem with the TLS. 3. I have four redis client created, and every 2 minutes will get this error: "error: Socket closed unexpectedly" Environment: Node. So I tried to use redis:// instead of rediss://, and yes it was working stable. 1" Platform: aws Ecs Oct 21, 2024 · The error "Socket Closed Unexpectedly" along with hitting the maximum connection limit on your Azure Redis Cache can occur for a few reasons, typically related to resource limitations or improper connection handling in your application. 2" Node Redis Version: "4. Sep 29, 2022 · between my app service and redis service, there is an aws NLB-network load balancer. sbw hexfx imxc hfewis grennlh bmtr jfjdu kxgjt cpm wptpds