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 davionwang · Apr 16, 2020 at 12:53 PM · eikon api proxy

EikonError: Error code -1 | Port number was not identified.

I reinstalled my Eikon due to the Excel add-in doesn't work. Then the Excel fixed but my python API can't run. I tried all the possible solutions on Google and it still doesn't work. The error shows below. What can I do now?


2020-04-16 13:32:07,048 P[28556] [MainThread 22636] 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 0x00000198AD8124A8>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))

2020-04-16 13:32:09,060 P[28556] [MainThread 22636] 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 0x00000198AB34E0B8>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))

2020-04-16 13:32:11,088 P[28556] [MainThread 22636] Error on checking port 36036 : HTTPConnectionPool(host='localhost', port=36036): Max retries exceeded with url: /api/v1/data (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x00000198ADCDA4A8>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))

2020-04-16 13:32:11,092 P[28556] [MainThread 22636] Error on handshake port None : Failed to parse: http://localhost:None/api/handshake

2020-04-16 13:32:17,148 P[28556] [MainThread 22636] Error: no proxy address identified.

Check if Eikon Desktop or Eikon API Proxy is running.

2020-04-16 13:32:17,152 P[28556] [MainThread 22636] Port number was not identified, cannot send any request

2020-04-16 13:32:17,154 P[28556] [MainThread 22636] Port number was not identified.

Check if Eikon Desktop or Eikon API Proxy is running.

Traceback (most recent call last):


File "C:\mysite\plottest.py", line 9, in <module>

ek.set_app_key('a6c23acee548458b9313691c8ef342d68c6bbdde')


File "C:\Users\u50949\anaconda\lib\site-packages\eikon\Profile.py", line 39, in set_app_key

get_profile().set_app_key(app_key)


File "C:\Users\u50949\anaconda\lib\site-packages\eikon\Profile.py", line 239, in set_app_key

self.check_profile()


File "C:\Users\u50949\anaconda\lib\site-packages\eikon\Profile.py", line 371, in check_profile

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


EikonError: Error code -1 | Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running.

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.

4 Replies

  • Sort: 
avatar image
Best Answer
Answer by davionwang · Apr 20, 2020 at 08:25 AM

Everything back to normal after I shut down my PC for the weekend. No idea why reinstall and restart can't solve but this works. Thank you very much for your concern.

Comment

People who like this

0 Show 0 · 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
Answer by Gurpreet · Apr 16, 2020 at 01:31 PM

Hi @davionwang, If you search this site for "Port number was not identified", there will be dozens of questions, with varying resolutions for you to try. The most common one seems to be to check if a .PortInUse file exists and what is the port number in it.

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
davionwang · Apr 16, 2020 at 01:44 PM 0
Share

Hello Gurpreet, thank you very much for your reply. I have tried many solutions. The .PortInUse exists and port is 9000. I followed instructions on the link https://developers.refinitiv.com/article/eikon-data-apipython-troubleshooting-refinitiv

For step 3, there are no SxS files found under TRD folder and http://localhost:9000/ping?all doesn't work for me.

I guess that caused by I reinstall the Eikon and python can't find the right path?

avatar image
REFINITIV
Answer by Gurpreet · Apr 17, 2020 at 03:49 PM

Hi @davionwang,

If you followed the article and configured the Eikon as suggested in step 3, then upon next restart of Eikon and trying to initiate a connection from API, you should see a SXS... log file. It is being written somewhere - so it is important to find it and figure out the cause.

You can upload the file here, so that we can take a look at it as well.

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
davionwang · Apr 17, 2020 at 05:23 PM 0
Share

Hi Gurpeet, I restarted Eikon but still can't find the sxs, below lists all filesI also tried to follow this answer https://community.developers.refinitiv.com/answers/45044/view.html

and get this

1587144037995.png (132.6 KiB)
eikon2.png (41.7 KiB)
avatar image
REFINITIV
Answer by Gurpreet · Apr 17, 2020 at 05:43 PM

Can you also please post the screenshot of your logs configuration screen.

Comment

People who like this

0 Show 0 · 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.

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

Coonect Eikon to Pycharm to retrieve data - error

Eikon API proxy not found when running Eikon from Jupyter Notebook - works on local IDE

I am not able to open eikon api proxy on mac

Error code 401 | Client Error: Eikon API Proxy requires authentication.

Eikon API Proxy stopped working on MacOS

  • 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
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • 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