Need assistance with Web Sockets - Json conversion error.

Hello,
I am testing my Web Socket connection using the “WebSocket
API Try it Now! Documentation Zip File” from TR DEV Community. It connects and seems to work fine, until I request a symbol. I see the error message "Json conversion error." See details below.
Thx
Gary
-------------------------------------------------------------------------------------------
Google Chrome
Version 63.0.3239.132 (Official Build) (64-bit)
Windows 10 Enterprise
SENT:
{
"ID": 2,
"Key": {
"Service": "IDN_RDF",
"Name": ".DJI"
}
}
RECEIVED:
[
{
"ID": 2,
"Type": "Status",
"Key": {
"Service": "IDN_RDF",
"Name": ".DJI"
},
"State": {
"Stream": "ClosedRecover",
"Data": "Suspect",
"Text": "Json conversion error."
}
}
Best Answer
-
Hi @Gurpreet
I think I solved the issue! I changed the following setting in my ads_pop.cnf:
*ads*IDN_RDF*dataType : 2 ---> 6
Thanks
Gary
0
Answers
-
I can replicate the issue by configuring ADS to use SSL protocol instead of RSSL protocol
*ads*routeList : hostssl
*ads*hostssl.route*serviceList : IDN_RDF
*ads*hostssl.route*port : rmds_ssl_sink
*ads*hostssl.route*hostList : 192.168.27.48
*ads*hostssl.route*userName : DACS_CASCADE
*ads*hostssl.route*protocol : sslauto
*ads*hostssl.route*singleOpen : True
*ads*hostssl.route*compressionType : 1
*ads*hostssl.route*pingInterval : 2The routeList uses hostssl route which connects to rmds_ssl_sink port with sslauto protocol.
You need to configure ADS to use RSSL protocol instead, as shown below.
*ads*routeList : hostrssl
...
*ads*hostrssl.route*serviceList : ELEKTRON_DD
*ads*hostrssl.route*port : rmds_rssl_sink
*ads*hostrssl.route*hostList : 192.168.27.46
*ads*hostrssl.route*userName : DACS_CASCADE
*ads*hostrssl.route*protocol : rssl
*ads*hostrssl.route*singleOpen : True
*ads*hostrssl.route*allowSuspectData : True
*ads*hostrssl.route*disableDataConversion : True
*ads*hostrssl.route*compressionType : 1The routeList of the above configurations uses hostrssl route which connect to rmds_rssl_sink port with rssl protocol.
Please change routeList to use rssl route protocol. If it doesn't solve the problem, please share the following information:
- The version of ADS
- The ADS configuration file
0 -
Thanks for your answer... I did check this setting, and it appears to be correct.
I am using ADS version 3.2.0.L1... have attached config file. Please let me know if you find anything out of place.ads-popcnf-egv-csd1.txt
0 -
Also... I should mention that this ADS 3.2 POP is being fed by TREP 2.6.1 ADH/ADS. Would this cause the issue? (Edge ---> adh 2.6.1 ---> ADS 2.6.1 ---> ADS 3.2)
0 -
Hi @gary.backes Are you using the latest version of download package?
What response do you get, when following request is sent (omitted service name):
{
"ID": 2,
"Key": {
"Name": ".DJI"
}
}In my setup I get the JSON error, when the service name requested does not match the service name provided by infrastructure.
0 -
Thank you for sharing.
I found one incorrect configuration in ads_pop.cnf.
*ads*defaultJsonServiceId : IDN_RDF
*ads*defaultJsonServiceId requires a serviceId.
The serviceId of IDN_RDF is 257. Therefore, the correct configuration is:
*IDN_RDF*serviceId : 257
...
*ads*defaultJsonServiceId : 2570 -
@Jirapongse
Thx for catching that... now my default service works as it should!
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 249 ETA
- 554 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 643 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛