Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /
avatar image
Question by calvin.lam · Jan 27, 2019 at 05:00 AM · connectport 9000refused

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'))

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Zhenya Kovalyov · Jan 28, 2019 at 04:31 AM

@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\
Comment

People who like this

0 Show 4 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
facuiannello · Jan 28, 2019 at 07:29 PM 0
Share

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?

avatar image
REFINITIV
Alex Putkov. ♦♦ facuiannello · Jan 29, 2019 at 03:10 PM 0
Share

@facuiannello
Do you have Eikon running on the machine where you're running your Python scripts?

avatar image
facuiannello Alex Putkov. ♦♦ · Jan 30, 2019 at 09:26 PM 0
Share

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?

avatar image
Answer by calvin.lam · Jan 31, 2019 at 12:53 AM

Thanks for the reply @facuiannello, @Zhenya Kovalyov @Alex Putkov.I 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.

Comment

People who like this

0 Show 2 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Alex Putkov. ♦♦ · Jan 31, 2019 at 04:01 PM 0
Share

@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\\.portInUse

avatar image
REFINITIV
Zhenya Kovalyov ♦♦ · Feb 04, 2019 at 08:25 AM 0
Share

@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

avatar image
Answer by REFAUP · Oct 07, 2019 at 08:25 PM

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.

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Alex Putkov. ♦♦ · Oct 07, 2019 at 09:05 PM 0
Share

@AUP1028

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.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
11 People are following this question.

Related Questions

Connection Actively Refused 127.0.0.1:36036

Error on checking port 9000 : Parent module 'requests.packages.idna' not loaded, cannot perform relative import

Eikon Python API Response 500

R connection problem port 9000

raise EikonError(-1, 'Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running.')

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges