Refinitiv Real-Time - Optimized; web-socket sometimes immediately gets closed by server after sendin
We have a java client that connects to Refinitiv RTO websocket and fetches data, recently more frequent disconnects started happening and they're causing us to lose data.
After investigating it seems like Refinitivs servers closes the websockets for no reason that we could find (confirmed by the log below)
public void onDisconnected(WebSocket websocket, WebSocketFrame serverCloseFrame, WebSocketFrame clientCloseFrame, boolean closedByServer) throws Exception {
log.info("WebSocket disconnected closedByServer: {}", closedByServer);
--> WebSocket disconnected closedByServer: true
Also tried running the python example code when the issue started happening and i was able to replicate the issue (tried the script a few days earlier and can confirm that it worked); websocket closes when sending login request to server
2022-12-12 16:22:02,313 connect() Connecting to WebSocket wss://us-east-1-aws-3-med.optimized-pricing-api.refinitiv.net:443/WebSocket for session1...
2022-12-12 16:22:03,829 _on_open() WebSocket successfully connected for session1!
2022-12-12 16:22:03,830 _send_login_request() SENT on session1:
2022-12-12 16:22:03,830 _send_login_request()
2022-12-12 16:22:04,163 _on_close() WebSocket Closed for session1
2022-12-12 16:22:04,163 _on_close() Reconnect to the endpoint for session1 after 3 seconds...
2022-12-12 16:22:07,169 connect() Connecting to WebSocket wss://us-east-1-aws-3-med.optimized-pricing-api.refinitiv.net:443/WebSocket for session1.
<repeats until user stops the script>
Have taken a look at the documentation and haven't found anything that explains this behavior.
Appreciate any suggestions on this
Best Answer
-
Hello @antoniob
I am sorry to hear that you are facing this connection issue.
Does the issue always occur with this "us-east-1-aws-3-med.optimized-pricing-api.refinitiv.net" WebSocket server endpoint? Could you please retest with the endpoints in other availability zones or regions that are closer to you? You can find more detail about the RTO endpoints in all availability zones/regions from the Refinitiv Real-Time - Optimized New Hostnames August 2021 document (or using the Service Discovery feature).
The WebSocket API is also a server-side API, so you may contact the Refinitiv Real-Time - Optimized (RTO) support team directly to verify the connection issue. You can contact the team via this https://my.refinitiv.com/content/mytr/en/helpandsupport.html page.
Hope this helps.
1
Answers
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛