question

Upvotes
Accepted
46 8 12 16

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


#technology#productrdp-api.netconnection-error
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.

1 Answer

· Write an Answer
Upvotes
Accepted
312 4 2 3

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

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.