MRN WebSocket A18: Unknown service
Hi!
I use example of application from https://developers.refinitiv.com/en/article-catalog/article/creating-websocket-mrn-story-viewer-using-net-core-and-wpf article. I cloned repository (https://github.com/Refinitiv-API-Samples/Example.WebSocketAPI.CSharp.MRNWebSocketViewer) and trying to run application. As far as I understand WebSocket connection is established and login request is accepted by RTDS server. But after that status event is received and connection is closed.
"MRN_STORY Status:: data state:Suspect stream state:Closed code:SourceUnknown status text:A18: Unknown service."
Could you please advise what can be wrong?
Thanks!
Best Answer
-
Hello @pavel.kropachev ,
The article you refer to is an excellent resource for MRN integration with .NET Core. The request format has been enhanced since its publication, and the article companion code has become slightly outdated: it uses short form of the request, relying on the default service, that used to be supported. At present, an explicit service parameter is required in the subscription request.
You will need to confirm the name of elektron service that is made available by your local RTDS with your local market data admin/group.
Next, to update the service name in the MRN request, if, for example, your elektron service is named "ELEKTRON_DD", update the code at the point where MRN request is issued, for example:
public async Task SendMrnStoryRequest(int streamId, string storyItem = "MRN_STORY")
{
var serviceName = "ELEKTRON_DD";
var marketPriceReq = new ReqMessage
{
ID = streamId,
Domain = DomainEnum.NewsTextAnalytics,
// Key = new MessageKey {Name = new List<string> {storyItem}, NameType = NameTypeEnum.Ric}
Key = new MessageKey { Name = new List<string> { storyItem }, Service = serviceName }
};
await ClientWebSocketUtils.SendTextMessage(_websocket.WebSocket, marketPriceReq.ToJson()
}Hope this information helps
2
Answers
-
Hello @pavel.kropachev
While my colleague @zoya faberov answer contains clear information, additionally, you can contact your local Market Data team to configure the RTDS's defaultJsonServiceId parameter to the service id that is mostly used by the consumer applications too.
This parameter defines the default service for the WebSocket client applications. The service can be overridden in the JSON request message. If defaultJsonServiceId is empty (default value), there will be no default service id. The WebSocket applications have to always specify a service in the item requests.
1 -
Hello @zoya faberov and @wasin.w
Thanks for help and clarification!
Currently it looks like MRN_STORY is not permitted in our environment (now I get Access Denied: User req to PE(10001)). So, we need to clarify how to enable this access to continue with example.
Thanks!
0 -
Hello @pavel.kropachev ,
Please contact your organization's Refinitiv account manager for product-related permissioning.
1 -
Yes, already done.
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 中文论坛