websocket connection refused by target machine
We used sample code
https://github.com/Refinitiv/websocket-api/blob/master/Applications/Examples/python/market_price.py
to test websocket connection to TREP machine (where we changed the hostname,user to fit our in-house configurations, we still keep port=15000 and app_id=256 intact). However we received the error message
[WinError 10061] No connection could be made because the target machine actively refused it
WebSocket Closed
On the other hand if we use port=14002, remote machine won't refuse the connection, but will close the connection immediately.
Best Answer
-
it turns out our TREP machine need updates
0
Answers
-
Hi @gxu,
As a first step to confirm connectivity, which is what appears to be your issue here, try using the interactive documentation as outlined within the WebSocket Quick Start. If you are having trouble connecting, refer to the troubleshooting section within that quick start. If you are still unable to connect, I would reach out to your market data team to confirm they have in fact set up a WebSocket server correctly. Note, the TREP server component ADS must be version 3.2 or greater.
thanks.
0 -
Hi @gxu
The error message you report does suggest that the server is not listening on port 15000 - i.e. the Websocket interface/service has been disabled or the ADS is an older version and does not support it.
The 14002 is initially accepted as the server is listening on 14002 - but then closed the connections as it is not recognised as a RSSL type connection.
0 -
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 5 Bot Platform
- 17 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
- 370 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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛