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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
28 6 6 5

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) ?

elektronwebsocketsrrtorefinitiv-realtime-optimisedr
icon clock
10 |1500

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

@g.suhharukov

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS


1 Answer

· Write an Answer
Upvotes
Accepted
78.8k 249 52 74

@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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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