"Error": "Failed to open OMM stream" is returned on Workspace API

Options

 Please advise how to fix. The steps are as below.

[Steps ]

1.Install and login “Workspace for Windows” 

https://www.lseg.com/en/data-analytics/products/workspace/download-workspace

2.Create App Key

https://developers.lseg.com/en/api-catalog/refinitiv-data-platform/refinitiv-data-library-for--net/quick-start#getting-started-with--net

[Screenshot - app key]

AppKey.png

3.Credentials.cs - Change App Key

4.Session.cs - change SessionType to “Desktop”, 1.2 - DesktopSession  is successful as below.

[Screenshot - Visual Studio debug console]

Microsoft Visual Studio debug console.png

“2.2.03-Pricing-StreamingCache “ in tutorial fails.  Error message is below.

"Error":"Failed to open OMM stream - streaming services are unavailable. Verifylog details and ensure you have permissions."

Log file is attached.

Workspace works fine.

Sample code https://github.com/LSEG-API-Samples/Example.DataLibrary.DotNet

Running on Windows 10, Visual Studio 2022

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @Midori517

    Thank you for reaching out to us.

    I have attached the woking log.

    I found the following error in the log.

    2024-11-27 15:35:32.9007|Warn|Refinitiv.Data.Core.DesktopStreamDiscovery|23|Failed to query streaming discovery endpoint: http://localhost:9000/api/rdp/streaming/benchmark/v1/resource for service: benchmark.
    {
    "HTTPStatusCode": 500,
    "HTTPReason": "Internal Server Error",
    "Contents": "Internal Server Error"
    }
    2024-11-27 15:35:53.9313|Warn|Refinitiv.Data.Core.DesktopStreamDiscovery|23|Failed to query streaming discovery endpoint: http://localhost:9000/api/rdp/streaming/quantitative-analytics/beta1/financial-contracts for service: quantitative-analytics.
    {
    "HTTPStatusCode": 500,
    "HTTPReason": "Internal Server Error",
    "Contents": "Internal Server Error"
    } … 2024-11-27 15:35:56.1052|Info|Refinitiv.Data.Delivery.Stream.OMMConnection|23|Sending login request to localhost:9000/api/rdp/streaming/pricing/v1/WebSocket
    2024-11-27 15:36:17.2437|Warn|Refinitiv.Data.Core.DesktopSessionCore|13|Failed to establish a Desktop stream. "Cannot establish connection to the platform"
    2024-11-27 15:36:17.2437|Warn|Refinitiv.Data.Delivery.Stream.OMMConnection|13|Cannot establish connection to the platform
    2024-11-27 15:36:17.2437|Warn|Refinitiv.Data.Delivery.Stream.OMMConnection|13|Session Event: StreamAuthenticationFailed
    2024-11-27 15:36:17.2437|Warn|Refinitiv.Data.Delivery.Stream.OMMItemStream|13|OMMItemStream: Failed to open OMM stream - streaming services are unavailable.
    2024-11-27 15:36:17.2437|Warn|Refinitiv.Data.Delivery.Stream.OMMConnection|23|Microsoft's ClientWebSocket Connection closed [ (NormalClosure)]
    2024-11-27 15:36:17.2437|Warn|Refinitiv.Data.Core.DesktopSessionCore|23|Failed to establish a Desktop stream. "Connection to the WebSocket server [localhost:9000/api/rdp/streaming/pricing/v1/WebSocket] down. Microsoft's ClientWebSocket Connection closed [ (NormalClosure)]"
    2024-11-27 15:36:17.2437|Warn|Refinitiv.Data.Delivery.Stream.OMMConnection|23|Session Event: StreamDisconnected
    2024-11-27 15:36:17.2575|Info|Refinitiv.Data.Core.DesktopSessionCore|1|DesktopSession Session State transitioned from Opened to Closed
    2024-11-27 15:36:17.2575|Info|Refinitiv.Data.Core.DesktopSessionCore|1|Desktop DesktopSession is Closed

    You may need to contact the Eikon Data API and Refinitiv Data Library - Troubleshooting article to verify if the API proxy is running properly. Moreover, according to the following error, you need to contact the Workspace support team to verify the permission.

    2024/11/27 15:37:49: Event: StreamAuthenticationFailed. {
    "Contents": "Cannot establish connection to the platform"
    }
    {
    "Error": "Failed to open OMM stream - streaming services are unavailable. Verify log details and ensure you have permissions."
    }