Unable to connect with Refinitiv Data Library for C#
Trying to connect with the C# API on a new computer (windows) I cannot get a connection.
The workspace application itself seems to work fine.
Are there any system/network configuration settings I should check?
When I turn on logging I get the following RDP.log entries:
2023-11-22T12:48:05 Info Refinitiv.Data.Core.DesktopSessionCore DesktopSession Session State transitioned from Pending to Opened
2023-11-22T12:48:05 Info Refinitiv.Data.Core.DesktopSessionCore Desktop Session Successfully Authenticated
2023-11-22T12:48:05 Info Refinitiv.Data.Delivery.Stream.RDPWebSocket Created IWebSocket Interface: RDPFeed.RefinitivDataPlatform.WebSocketWrapper
2023-11-22T12:48:05 Info Refinitiv.Data.Delivery.Stream.OMMConnection Streaming Connection initiated using:
{
Host: localhost:9002/api/rdp/streaming/pricing/v1/WebSocket (Path: [])
WebSocket URL: ws://localhost:9002/api/rdp/streaming/pricing/v1/WebSocket
Protocol: tr_json2
AuthToken: <removed>
AuthPosition: <removed>
ApplicationID: <removed>
}
2023-11-22T12:48:05 Info Refinitiv.Data.Delivery.Stream.OMMConnection Successfully connected into the WebSocket server: localhost:9002/api/rdp/streaming/pricing/v1/WebSocket. Connection HashCode: <removed>
2023-11-22T12:48:05 Info Refinitiv.Data.Delivery.Stream.OMMConnection Session Event: StreamConnected
2023-11-22T12:48:05 Info Refinitiv.Data.Delivery.Stream.OMMConnection Sending login request to localhost:9002/api/rdp/streaming/pricing/v1/WebSocket
2023-11-22T12:48:06 Warn Refinitiv.Data.Core.DesktopSessionCore Failed to establish a Desktop stream. "Cannot establish connection to the platform"
2023-11-22T12:48:06 Warn Refinitiv.Data.Delivery.Stream.OMMConnection Cannot establish connection to the platform
2023-11-22T12:48:06 Warn Refinitiv.Data.Delivery.Stream.OMMConnection Session Event: StreamAuthenticationFailed
2023-11-22T12:48:06 Warn Refinitiv.Data.Delivery.Stream.OMMItemStream OMMItemStream: Failed to open OMM stream - streaming services are unavailable.
2023-11-22T12:48:06 Warn Refinitiv.Data.Delivery.Stream.OMMConnection WebSocket Connection closed.
2023-11-22T12:48:06 Warn Refinitiv.Data.Core.DesktopSessionCore Failed to establish a Desktop stream. "Connection to the WebSocket server [localhost:9002/api/rdp/streaming/pricing/v1/WebSocket] down. WebSocket Connection closed."
2023-11-22T12:48:06 Warn Refinitiv.Data.Delivery.Stream.OMMConnection Session Event: StreamDisconnected
2023-11-22T12:48:06 Info Refinitiv.Data.Core.DesktopSessionCore DesktopSession Session State transitioned from Opened to Closed
2023-11-22T12:48:06 Info Refinitiv.Data.Delivery.Stream.OMMConnection StartAdminProcessing stopped.
2023-11-22T12:48:06 Info Refinitiv.Data.Delivery.Stream.OMMConnection StartMessageProcessing stopped.
2023-11-22T12:48:06 Info Refinitiv.Data.Core.DesktopSessionCore Desktop DesktopSession is Closed
Best Answer
-
Hello @martin.grunwald
It seems that your connection is closed due to failed authentication:
2023-11-22T12:48:06 Warn Refinitiv.Data.Delivery.Stream.OMMConnection Session Event: StreamAuthenticationFailed
Please double check if your credentials are correct in the following locations:
- your system configuration file (located in C:\Users\<Your-User>\refinitiv-data.config)
- environment variables (APPKEY must be defined as a System Variable)
- configuration files inside your project and code where credentials are specified
If you still encounter issues, please provide the code of the failing example to help us investigate in more detail.
Thanks,
Cristian
0
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 中文论坛