I am also getting the same error,I’m trying to build 5 mins candle from the web socket data for my strategy in AWS EC2
Logs shared below
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“Connection to remote host was lost.”,“timestamp”:“2025-12-16 08:00:40,832+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[SSL: BAD_LENGTH] bad length (_ssl.c:2501)”,“timestamp”:“2025-12-16 09:03:56,869+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“Connection to remote host was lost.”,“timestamp”:“2025-12-18 07:25:10,429+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[Errno 32] Broken pipe”,“timestamp”:“2025-12-18 07:26:30,195+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[SSL: BAD_LENGTH] bad length (_ssl.c:2501)”,“timestamp”:“2025-12-18 07:35:18,592+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[SSL: BAD_LENGTH] bad length (_ssl.c:2501)”,“timestamp”:“2025-12-19 06:38:33,688+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[SSL: BAD_LENGTH] bad length (_ssl.c:2501)”,“timestamp”:“2025-12-19 06:40:09,768+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[Errno 32] Broken pipe”,“timestamp”:“2025-12-19 06:41:32,459+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[SSL: BAD_LENGTH] bad length (_ssl.c:2501)”,“timestamp”:“2025-12-19 06:43:15,055+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“Connection to remote host was lost.”,“timestamp”:“2025-12-19 06:45:38,985+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[SSL: BAD_LENGTH] bad length (_ssl.c:2501)”,“timestamp”:“2025-12-19 06:56:42,508+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[SSL: BAD_LENGTH] bad length (_ssl.c:2501)”,“timestamp”:“2025-12-19 07:05:01,116+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[SSL: BAD_LENGTH] bad length (_ssl.c:2501)”,“timestamp”:“2025-12-19 07:08:06,817+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[Errno 32] Broken pipe”,“timestamp”:“2025-12-19 07:09:41,175+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[Errno 32] Broken pipe”,“timestamp”:“2025-12-19 07:10:58,433+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“Connection to remote host was lost.”,“timestamp”:“2025-12-19 07:24:53,562+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[SSL: BAD_LENGTH] bad length (_ssl.c:2501)”,“timestamp”:“2025-12-19 07:45:11,727+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[SSL: BAD_LENGTH] bad length (_ssl.c:2501)”,“timestamp”:“2025-12-19 08:05:27,920+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[SSL: BAD_LENGTH] bad length (_ssl.c:2501)”,“timestamp”:“2025-12-19 08:39:11,625+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[Errno 32] Broken pipe”,“timestamp”:“2025-12-19 08:40:27,875+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[SSL: BAD_LENGTH] bad length (_ssl.c:2501)”,“timestamp”:“2025-12-19 08:47:37,588+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[Errno 32] Broken pipe”,“timestamp”:“2025-12-19 08:49:03,431+0000”,“service”:“FyersDataSocket”}
{“level”:“ERROR”,“location”:“[:1663] data_ws”,“message”:“[SSL: BAD_LENGTH] bad length (_ssl.c:2501)”,“timestamp”:“2025-12-19 08:59:29,073+0000”,“service”:“FyersDataSocket”}
Due to this, my calculations are going wrong. Kindly do the needful