IS THERE SOME PROBLEM IN WEBSOCKET
I AM GETTING
fy_socket = data_ws.FyersDataSocket(
access_token=ACCESS_TOKEN,
log_path="",
litemode=False,
write_to_file=False,
reconnect=True,
on_connect=on_connect,
on_close=handle_ws_close,
on_error=handle_ws_error,
on_message=combined_on_message,
)
[2026-06-30 06:31:29] WebSocket error: Handshake status 504 Gateway Time-out -±± {‘date’: ‘Tue, 30 Jun 2026 01:01:29 GMT’, ‘content-type’: ‘text/plain; charset=UTF-8’, ‘content-length’: ‘15’, ‘connection’: ‘keep-alive’, ‘strict-transport-security’: ‘max-age=31536000; includeSubDomains; preload’, ‘x-content-type-options’: ‘nosniff’, ‘x-frame-options’: ‘SAMEORIGIN’, ‘referrer-policy’: ‘same-origin’, ‘cache-control’: ‘private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0’, ‘expires’: ‘Thu, 01 Jan 1970 00:00:01 GMT’, ‘set-cookie’: ‘_cfuvid=M42GUoSk8Am2NLPkxxS35WvhxaNvJOhjywZr4S0WLek-1782781289774-0.0.1.1-604800000; path=/; domain=.fyers.in; HttpOnly; Secure; SameSite=None’, ‘server’: ‘cloudflare’, ‘cf-ray’: ‘a1393d3679da3d06-BOM’} -±± b’error code: 504’
Attempting reconnect 1 of 5…
AND THEN AFTER 5 ATTEMPTS IT IS NOT CONNECTING