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

...s running.')

Hello,

Could you please help with the following error codes?

I use a PC and Eikon Desktop, logged in and running, however python scrips spit an error.

It started after I downloaded and used API Proxy for Mac on the weekend.

pip install --upgrade --force-reinstall requests

pip install --upgrade --force-reinstall idna

Didn't help.

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 0x0000000009A69320>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
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 0x0000000009A69710>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
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 0x0000000009A69C88>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
Error on handshake port None : Failed to parse: localhost:None
Port number was not identified.
Check if Eikon Desktop or Eikon API Proxy is running.

...

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

Kind regards,

Dmitry

Best Answer

  • chavalit-jintamalit
    Answer ✓

    Hi @dmitry.sarin

    Please identify if the Eikon Desktop is running properly and is listening on 9000 port on your PC.

    Please try to restart your PC and Eikon Desktop and try any simple API calls again.

    Please note that when you log in to Eikon API Proxy on Mac with the same Eikon account, it will log out your Eikon Desktop on PC.

    Here is the error when I tried to make API call but my Eikon Desktop is not running.

    image

    You can use currports freeware to check if Eikon is listening on port 9000/TCP on your PC.

    image

Answers