Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • WebSocket API /

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by pradeep.badoni · Jun 24, 2021 at 11:05 AM · websocketsrrtorefinitiv-realtime-optimised

WebSocket API - Keep getting message - stream is closed.

Hi Team,

Need your help.

We have deployed the Latest WebSocket API solution in one of our client's production and we are not able to receive rates as we are keep getting message "Stream is closed" and nothing is happing.

We were not handling this case in the application but I am thinking to add a retry logic where I again create connection and start sending the login request.

Questions for you:

Why we are getting Stream is closed message?

If a retry need to be implemented, how much time I need to wait before retrying and how many time we need to retry?

Appreciate your help in advance.

Note: This is not happing when we start the application, it happened randomly during the day.

Let me know if you need more detail.

Thanks

Pradeep B





People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Gurpreet · Jun 24, 2021 at 01:03 PM

Hi @pradeep.badoni,

There are many reasons for this issue - it could be network disruptions, or failure to renew the token in time etc. To eliminate these, can you:

1. Try to run the service discovery example from the same machine and see if it experiences similar disruptions.

2. Capture the raw network packets for analysis.


Comment

People who like this

0 Show 2 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
pradeep.badoni · Jun 24, 2021 at 01:10 PM 0
Share
Hi Gurpreet,


Could you please help me on point #2, on how to capture the raw network packets for analysis.

Are you looking for the JSON message or something else?

Thanks

Pradeep B

avatar image
REFINITIV
Gurpreet ♦♦ pradeep.badoni · Jun 24, 2021 at 01:43 PM 0
Share
Hi Pradeep,

Start with service discovery sample first.

For captures start from the simple one and capture the raw JSON messages with timestamp from your application.

You might need to use Wireshark to capture network packets - but for that you will need to open a service ticket with Refinitiv support who can look at network logs at server side and compare them to your network traffic.

avatar image
Answer by pradeep.badoni · Jul 05, 2021 at 03:49 AM

Hi Team,

We are trying the check with Refinitiv Support team. Till this point we didn't get any response.

I will update the thread once have some update from Refintiv support.

I did added a retry logic when we get "stream is closed" message and we are going to deploy this solution in client production and see what happened.

In my local testing the retry logic is working as expected and able to start the communication again.

Thanks

Pradeep B

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
8 People are following this question.

Related Questions

Ways to get RIC Codes

How to get source list and dictionary with webSocket API?

RTO : password special characters that breaks the url used to connect to the cloud

Any other timestamp fields available on Quote and Trade updates in WebSockets API?

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

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges