Starting today (09/30) can no longer connect to the Eikon API Proxy.
Error looks like this:
2019-09-30 14:45:35,654 pyeikon INFO Warning: file .portInUse was not found. Try to fallback to default port number. 2019-09-30 14:45:35,655 pyeikon INFO Try defaulting to port 9000... 2019-09-30 14:45:37,663 pyeikon ERROR 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 0x000001C5CB39FB70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)) 2019-09-30 14:45:37,664 pyeikon INFO Try defaulting to port 36036... 2019-09-30 14:45:39,690 pyeikon ERROR 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 0x000001C5CB3C3198>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)) 2019-09-30 14:45:39,691 pyeikon INFO Try to handshake on url http://localhost:None/api/handshake... 2019-09-30 14:45:39,692 pyeikon ERROR Error on handshake port None : Failed to parse: localhost:None 2019-09-30 14:45:39,692 pyeikon INFO Set Proxy port number to None 2019-09-30 14:45:39,692 pyeikon ERROR Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running.
c:\Users\<user>\AppData\Roaming\Thomson Reuters\Eikon API Proxy\ is empy, no .portInUse file
Eikon terminal version 4.0.49
eikon lib version 1.0.1
In C:\ProgramData\Thomson Reuters\Eikon Data\Logs I don't see lines like 'listening to port=" at all, however, proxy worked somehow until today and I see a lot of lines containing "APIPROXY" before today, for example:
[2019-09-27 10:16:53.441|2B50|SD_KPROCFG |2|INFO ][Batch#1] Uploading 1 CPAP setting(s), APIPROXY.THROTTLING.STORE
in the EikonStarter*.txt file.
Any help is highly appreciated, it's a blocker which happened over sudden. I already contacted the Eikon support (chat option), but was redirected here.
It appears that the problem was in the corporate firewall or smth. like that.
* eikon python api started throwing the "Warning: file .portInUse was not found. Try to fallback to default port number" error
* http://localhost:9000/ping?all was not accessible, nothing listened 9000 port
* after a fresh reinstall of the Eikon terminal:
** SxS.YYYYMMDD.hhmmssfff.pPID.txt log files were missing in the ..\Thomson Reuters\Eikon Data\Logs\TRD
** THOMSONREUTERS.EIKON.DESKTOPSXSSVC directory was missing in the ..\Thomson Reuters\EikonUser\Cache\LibraryCache\Apps
* it appears that smth. prevented the THOMSONREUTERS.EIKON.DESKTOPSXSSVC app from downloading
* once the issue above was pinpointed and addressed, the THOMSONREUTERS.EIKON.DESKTOPSXSSVC app installed and the proxy started on 9000 port
Maybe this information will help someone running into the same problem.
Please consider adding a check for the THOMSONREUTERS.EIKON.DESKTOPSXSSVC to the troubleshooting guide https://developers.refinitiv.com/article/eikon-data-apipython-troubleshooting-refinitiv .
EikonProxy listening on local port 8042 is not the APIPROXY service that Eikon Data APIs utilize. What you experienced with an Eikon process listening on port 8042 is normal and expected. What you experienced with Eikon not listening on port 9000 and not creating .portInUse file is not normal. To investigate the problem we need to look at the log file named SxS.YYYYMMDD.hhmmssfff.pPID.txt, where YYYYMMDD and hhmmss(fff) are date and time strings when the log is created and PID is the Windows process ID of the Eikon process creating the log. The time and the PID will not be the same for the folder name and the file names. E.g. the full path to the log file we’re interested in may be C:\ProgramData\Thomson Reuters\Eikon Data\Logs\TRD\Eikon.20190930.111142.p15756\SxS.20190930.111236000.p13216.txt.
Yes, 9000. SxS.YYYYMMDD.hhmmssfff.pPID.txt file was missing, as well as AppData\Local\Thomson Reuters\Eikon User\Cache\LibraryCache\Apps\THOMSONREUTERS.EIKON.DESKTOPSXSSVC directory.
That was the situation after multiple uninstall/reboot/install/reboot/try cycles.
Then THOMSONREUTERS.EIKON.DESKTOPSXSSVC directory was copied from another pc, where Eikon terminal was launched using my login, and terminal was left overnight. Today proxy magically started working.
Today SxS log file doesn't look particularly interesting:
start node Arg: C:\Users\<user>\AppData\Local\Thomson Reuters\Eikon\X\Bin\Eikonbox.exe C:\Users\<user>\AppData\Local\Thomson Reuters\Eikon User\Cache\LibraryCache\Apps\THOMSONREUTERS.EIKON.DESKTOPSXSSVC\22.214.171.124\index.js -TraceLevel=-1
I don't know how exactly Eikon terminal works, but I've got an impression that it was not able to populate its cache with THOMSONREUTERS.EIKON.DESKTOPSXSSVC and, possibly, other subsystems for whatever reason. For example, I don't see neither update button, nor a checkmark confirming that I'm running the latest version (I'm not) as in the https://developers.refinitiv.com/article/eikon-data-apipython-troubleshooting-refinitiv .