For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

mario.andreoli avatar image
3 1 1 1

Error on handshake url http://127.0.0.1:9060/api/handshake

Hi,

My Python packages and applications related to Eikon are as follows.

Python packages:

- python 3.10.1 and 3.9.1

- eikon 1.1.14

Applications:

- Eikon Desktop 4.0.56026


I have this error after set app key:

ek.set_app_key('****’)

2022-03-14 20:01:32,183 P[14720] [MainThread 10684] Error on handshake url http://127.0.0.1:9060/api/handshake : ReadTimeout('')

2022-03-14 20:01:32,184 P[14720] [MainThread 10684] Error on handshake url http://127.0.0.1:9060/api/handshake : ReadTimeout('')

2022-03-14 20:01:32,184 P[14720] [MainThread 10684] Port number was not identified, cannot send any request


I have seen your threads (thread1, thread2) but but none of the given solutions have helped me.

I can’t reach (error 504):

• curl -v telnet://apac1.apps.cp.thomsonreuters.com:80 -x http://user:pswd@proxy_host:port

• curl -v telnet:// http://127.0.0.1:9060/api/handshake -x http://user:pswd@proxy_host:port

I can’t open this localhost:

• http://localhost:9060/api/

• http://localhost:9000/ping?all

• http://localhost:9060/api/status


I reach:

curl -v telnet:/159.220.1.19:443 -x http://user:pswd@proxy_host:port


Finally, I tried to shut down my Eikon, clear cache, restart application and retry API call but I still have the same problem (see thread3 and article: Eikon Data API(Python) Troubleshooting | Refinitiv.)


Do I need to contact Refinitiv Helpdesk (thread4) or my Refinitiv Account Manager (thread5)?

Thanks for any help you can give me.


eikon-data-apipythonworkspace-data-apirefinitiv-data-platformpython api
10 |1500

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

1 Answer

zoya faberov avatar image
28.3k 30 11 15

Hello @mario.andreoli ,

It does not look like Eikon Proxy is listening on port 9060 on your local machine.

Some suggestions, as the issue is local:

1. I would try to determine, what port Eikon is listening on:

Follow Eikon Data API(Python) Troubleshooting | Refinitiv section "3. Verify that Eikon Desktop is running properly and APIPROXY service is enabled" to find your latest SxS log file and the line where it says "API Proxy is available on port". Is the port 9060? Or?

2. Do you see file .portInUse in AppData\Roaming\Refinitiv\Data API Proxy directory, are the contents of the file 9060? Or?

3. If you are a local admin, open a cmd shell "as admin" and go:

netstat -a | findstr 9060

What do you see, is it:

TCP    127.0.0.1:9060         YOURHOSTNAMEO:0      LISTENING

Now you can shut down your Eikon desktop, make sure via Task manager that no Eikon processes are running, and check the same. Was the process that was listening on port 9060 part of your Eikon desktop, or is another application is listening on 9060 port?

If you have found a port that is different from 9060 in two previous steps, run the same for that port, what do you see?

4. Failing the previous ideas, and if you are a local admin, I would verify what firewalls or virus blocks are running and which ports are they blocking on the local machine. If this is not easy to discover, I would temporarily stop these, to see if when you restart Eikon in the absence of such, you are able to both bind Eikon proxy and connect via Eikon Data API.

Hope that this information is of help

10 |1500

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