Websocket connection issue

We are getting below exception while connecting to Websocket API.
Can you please check..
Connecting to WebSocket wss://amer-1.pricing.streaming.edp.thomsonreuters.com:443/WebSocket ...
com.neovisionaries.ws.client.HostnameUnverifiedException: The certificate of the peer does not match the expected hostname (amer-1.pricing.streaming.edp.thomsonreuters.com)
at com.neovisionaries.ws.client.SocketConnector.verifyHostname(SocketConnector.java:281)
at com.neovisionaries.ws.client.SocketConnector.doConnect(SocketConnector.java:246)
at com.neovisionaries.ws.client.SocketConnector.connect(SocketConnector.java:190)
at com.neovisionaries.ws.client.WebSocket.connect(WebSocket.java:2323)
at reuters.MarketPriceEdpGwAuthentication.connect(MarketPriceEdpGwAuthentication.java:165)
at reuters.MarketPriceEdpGwAuthentication.main(MarketPriceEdpGwAuthentication.java:98)
Best Answer
-
Hello @krishna muppavarapu
You can find more detail regarding the ERT in Cloud endpoints in section 2.7 Connect to ERT Cloud VIP of ERT in Cloud installation and configuration guide.
Basically, the amer-3 aims for the standard single connection. The amer-1 and amer-2 aim for case that the application may establish more than one connection to independent infrastructure and subscribe to the same content simultaneously among connections.
0
Answers
-
Updated: I do see an issue with amers-1 endpoint. Please use amer-2.pricing.streaming.edp.thomsonreuters.com endpoint meanwhile.
0 -
Ok, I see the issue. The certificate has expired. I will raise it internally -
*** Certificate chain
chain [0] = [
[
Version: V3
Subject: CN=amer-1.pricing.streaming.edp.thomsonreuters.com, OU=F&R, O=Thomson Reuters, L=Eagan, ST=Minnesota, C=US
Signature Algorithm: SHA256withRSA, OID = 1.2.840.113549.1.1.11
Key: Sun RSA public key, 2048 bits
modulus: 19976974489711691032821577094974299965686857618413261027419367569268222200610781121175909143109092107669178746160299634559231267192640717529448745557383586267945182507857051666013596052689047640390345877652547429278005120626092673794653095160615742130511724476013438954179166762890057834161544674866851431601742267174155842752574664357040006669576996170628618819738562092260062872579532372187774178356361830700192219218644890307977205730061428892497504721582009002553664736903406838870457726800863469414270692898217457598635612225568438096340408800049674991897002816062832415271161847354664785954734280895930897261589
public exponent: 65537
Validity: [From: Mon Apr 01 20:00:00 EDT 2019,
To: Thu Apr 02 08:00:00 EDT 2020]
Issuer: CN=DigiCert SHA2 Secure Server CA, O=DigiCert Inc, C=US
SerialNumber: [ 0e0cf0bc 0b8295ad ac410e35 f1c1e58a]0 -
Hi @Gurpreet.
Thanks for your quick response. This actually raises a question on how as a consumer we should handle the primary and backup?
Service discovery gives us following endpoints (for US region).
So what is recommended strategy on selecting the endpoint url??
"us-east-1a" - amer-1.pricing.streaming.edp.thomsonreuters.com
"us-east-1b" - amer-2.pricing.streaming.edp.thomsonreuters.com
And we get one more like below
"location":[
"us-east-1a",
"us-east-1b"
],
"endpoint":"amer-3.pricing.streaming.edp.thomsonreuters.com",
0 -
These both endpoints are in the same region and so your app can connect to either one.
0 -
Hi @Wasin Waeosri, Thank you for your response. I have question on how to identify the "Standard Connection" configuration. Discovery service just returns with location array with one single entry or multiple entries (both 1a and 1b) but it doesn't have any attribute for us to filter standard vs premium configuration. What is the better way to filter this response?
{
"port":443,
"location":[
"us-east-1a",
"us-east-1b"
],
"provider":"aws",
"transport":"websocket",
"endpoint":"amer-3.pricing.streaming.edp.thomsonreuters.com",
"dataFormat":[
"tr_json2"
]
},
{
"port":443,
"location":[
"us-east-1a"
],
"provider":"aws",
"transport":"websocket",
"endpoint":"amer-1.pricing.streaming.edp.thomsonreuters.com",
"dataFormat":[
"tr_json2"
]
},
{
"port":443,
"location":[
"us-east-1b"
],
"provider":"aws",
"transport":"websocket",
"endpoint":"amer-2.pricing.streaming.edp.thomsonreuters.com",
"dataFormat":[
"tr_json2"
]
}
0 -
Hello @krishna muppavarapu
Sorry for a late reply. I saw you post a new question here. Could you please check my colleague answer in that post?
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
- 690 Datastream
- 1.5K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 560 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 280 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 721 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
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛