Websocket server issues

Is there any changes in the Websocket services? Because for some reason I am not being able to receive any market data via it for my personal screeners, Till last week it was working well

Hi Abdul,

We’ll look into this. Please share the following details: the error code, the symbols you’ve subscribed to, and the SDK version.

I thought it was resolved but still getting the issue often

SDK version: fyers-api-v3 @ 2.1.0 (also reproduced on 1.9.0 before upgrading)

Error:

Topic Not Available in TopicList!

TypeError: Cannot read properties of undefined (reading ‘prepareData’)

at HSParser.parseData (node_modules/fyers-api-v3/HSM_Package/hslib.js:3:43714)

at ws.onmessage (node_modules/fyers-api-v3/HSM_Package/hslib.js:3:32353)

Cannot read properties of undefined (reading ‘prepareData’)

TypeError: Cannot read properties of undefined (reading ‘prepareData’)

at HSParser.parseData (/home/mahvish/scanner-backend/node_modules/fyers-api-v3/HSM_Package/hslib.js:3:43714)

at ws.onmessage (/home/mahvish/scanner-backend/node_modules/fyers-api-v3/HSM_Package/hslib.js:3:32353)

at callListener (/home/mahvish/scanner-backend/node_modules/ws/lib/event-target.js:290:14)

What’s happening: The SDK’s internal binary parser logs “Topic Not Available in TopicList!” when it receives a message with a topic/type it doesn’t recognize, but then continues execution and calls .prepareData() on the (undefined) result of that failed lookup, throwing a TypeError. This happens inside the SDK’s own internal message handler, not in our application code.

Subscribed symbols: equity and index symbols from your master list. No options or futures contracts

https://public.fyers.in/sym_details/NSE_CM.csv

Thanks for sharing, Abdul. I just wanted to reconfirm that you are using the Node.js SDK, right?