For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
13 5 6 4

How avoid handle_read_frame error: websocketpp.transport:7 (End of File) error?

I have a script that connects to the Elektron feed via websocket. The code is based on the following https://github.com/Refinitiv/websocket-api/blob/master/Applications/Examples/R/market_price_batch_view.R

Sometimes it works perfectly, sometimes I have an error message:

send pong 
send pong 
[2021-05-04 15:05:02] [error] handle_read_frame error: websocketpp.transport:7 (End of File)
send pong 
Error in websocket callback: invalid state
Client disconnected with code 1006 and reason 

'send pong' appears when no message with the data is received from the server. This often happens, as not every second there are orders and trades in a place. I do not understand where this handle_read_frame error: websocketpp.transport:7 error comes from as it might happen after 20 minutes or after 6 hours. Could you help to identify where this comes from - from the Refinitiv server or bad internet connection (this is not probable) ?

elektronwebsocketsrrtorrefinitiv-realtime-optimised
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
38.1k 71 35 53

@g.suhharukov

You can contact the server team to verify if the server cut the connection.

Typically, when the server cuts the connection, it will log the reason for the disconnection.

If it is the Refinitiv server, please directly contact the server team via MyRefinitiv to verify the server log.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea