eikon.eikonError.EikonError: Error code -1 | Port number was not identified. Check if Eikon Desktop

Best Answer

  • @stepan.kalika

    I have a PowerShell script (CheckEikonDataAPI16.ps1.txt )that can be used to verify the status of the Eikon Data API Proxy. You may need to restart Eikon.

    1. Rename it to CheckEikonDataAPI16.ps1

    2. You need to run the PowerShell command as Administrator to change the policy by using the following command.

     Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine

    3. Next, run the CheckEikonDataAPI16.ps1 in the PowerShell

    image

    4. The output.txt will be created in the current directory. Please share this file

    5. Finally, you may need to change it back to Undefined.

    Set-ExecutionPolicy -ExecutionPolicy Undefined -Scope LocalMachine

    Moreover, please provide the information mentioned by my colleague.

Answers

  • Hi @stepan.kalika,

    Can you please provide the version of the API you are using - it is outlined in that document. Also, did all the troubleshooting steps pass in the article? That is, did you confirm the port, did you confirm Desktop version, the ping resulted in "path":"/api"? Is this the first time you are using the API or did it just stop?