APP cannot connect to server port 9000... target machine is actively refusing it

my App_key couldn't connect to the server. When I did a netstat, eikonbox is not listening to 9000.
Error Message Below:
Error on checking port 9000 : HTTPConnectionPool(host='localhost', port=9000): Max retries exceeded with url: /api/v1/data (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at XXXX>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
Best Answer
-
@calvin.lam first thing to check is that you are on the latest version of the python library (1.0.0). After that I suggest to check if .portInUse file exists. As Eikon API Proxy initializes, it writes a port that it is using into this location:
%APPDATA%\Thomson Reuters\Eikon API Proxy\.portInUse
```%APPDATA%``` should resolve into ```C:\Users\user_name\AppData\Roaming```.
Do you see a port number ? It would be helpful if you share the contents of the log file in this folder:
%APPDATA%\Thomson Reuters\Eikon API Proxy\Logs\
0
Answers
-
Hi, I'm having the same issue. I'm on the latest version of the python library, but I do not find the Thomson Reuters folder in the AppData folder. What can be causing this problem?
0 -
@facuiannello
Do you have Eikon running on the machine where you're running your Python scripts?0 -
Hi,thanks for your response. I do have Eikon desktop version running on the same computer. Shoudn't this folder be created during Eikon installation?
0 -
Thanks for the reply @facuiannello, @Zhenya Kovalyov @Alex Putkov.1I think I managed to solve it..... at least no error message so far. no time to test now.
I have Eikon running and eikon package is 1.0.0. I checked out the .portinuse file and noticed it was (port) 9000, next I did a netstat - anb (as admin with cmd) and checked out a port that EikonBox is listening to but not used; it doesn't have 9000 but I managed to find 8043. Changed the portinuse file to 8043. Next, I ran EK.set_app_key("XXXXXXXXXXXXX") and no error message. I checked netstat -anb and saw that 8043 has established a connection....
I hope this is the correct way.. i need to run now for a meeting and can't test getting data.
0 -
%AppData%\Thomson Reuters\ folder is created on Eikon startup. Which variant of Eikon are you using? Unfortunately you registered on this portal with a personal rather than corporate email address, which makes you anonymous to the moderators and impossible for us to check your Eikon account. Are you by any chance using Metastock Xenith product rather than Eikon?
0 -
@calvin.lam
Would you mind sharing your experience further when you have a chance? The behavior you describe is not in line with my expectations. I would not expect Eikon APIs Proxy to listen on port 8043. The startup logic is that it tries port 9000. If 9000 is occupied it tries 9001, 9002 and so on until it finds a free port. Once it sets the port number to listen on this port number is written into the file %APPDATA%\Thomson Reuters\Eikon API Proxy\\.portInUse0 -
@calvin.lam could you please paste the http://localhost:8043/ping?all address into your browser while Eikon is running, and share the output of this. Does this work? If not, try http://localhost:9000/ping?all
0 -
Hi, how to know if your API service is activated?
when i put the url : http://localhost:9000/ping?all on a browser i get the following answer.
{"port":9000,"mode":"eikon4","pid":4848,"hasSecure":true,"startedTime":"Mon Oct 07 2019 20:48:23 GMT+0100 (GMT Daylight Time)","subApps":[{"path":"/heap"},{"path":"/ping"},{"path":"/sxs","data":{"hasSecure":true,"sxsApps":{}}}]}
which doesn't include the api
This is on behalf of a client.
0 -
1. Old threads that have an accepted answer are not monitored by moderators. If you have a new question always start a new thread.
2. {"path":"api"} missing from the "subApps" in the response to http://localhost:9000/ping?all indicates that Eikon API Proxy service is not activated for this user. The most likely reason is that the variant of Eikon the user subscribes to does not include access to Eikon Data APIs.0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 683 Datastream
- 1.4K DSS
- 613 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
- 248 ETA
- 552 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
- 626 Refinitiv Data Platform Libraries
- 5 LSEG Due Diligence
- 1 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
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 84 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛