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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 0 0

Error on handshake port 9060 : TimeoutException

Hi,

I have the following error when trying to access Eikon API using Python.

 Error on handshake port 9060 : TimeoutException("TimeoutException on HTTP request: ReadTimeout('')")


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

Python packages:

- python 3.9.1

- eikon 1.1.8

Applications:

- Eikon Desktop 4.0.52055

- Eikon API Proxy 9.52.0.51


Also, setting environment variables are as follows because of using proxy server for the internet connection.

- HTTP_PROXY = http://username:password@proxyhost:port

- HTTPS_PROXY = http://username:password@proxyhost:port

- NO_PROXY = localhost,127.0.0.1


Can you help me?

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
1611234254965.png (86.0 KiB)
icon clock
10 |1500

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

Upvotes
Accepted
39.2k 75 11 27

@daichi.yuasa.b

Thank you for the information. All data retrieval from Eikon platform using Eikon Data APIs is via HTTPS port 443, hence I don't think the fact that you cannot telnet to apac1.apps.cp.thomsonreuters.com on port 80 is a concern for the issue you experienced.
For further investigation, could you please increase the logging level in Eikon Data APIs library for Python as follows before calling set_app_key method, and include the full output?

ek.set_log_level(1)
ek.set_app_key(YOUR_APP_KEY)

And could you also try retrieving some data, e.g.

ek.get_data('IBM.N', 'TR.Revenue')
icon clock
10 |1500

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

@Alex Putkov.

Thank you for the information.

I have attached the log file I got by running as below, Could you check it, please?

import eikon as ek
ek.set_log_level(1)
ek.set_app_key('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
ek.get_data('IBM.N', 'TR.Revenue')

pyeikon.20210127.02-38-26_mod_key.log.txt

Thank you for the log. We need to continue investigating this issue with Refinitiv Support. I raised case 09567134 on your behalf with Refinitiv Helpdesk. You will be contacted by the Helpdesk.

Upvotes
6.7k 8 6 7

Hi @daichi.yuasa.b Please could you tell me what library versions of the following you are running httpx, nest-asyncio? This thread maybe able to assist you as it deals with a number of possible solutions. For a start I would start with Python 3.8x. But let me know how you get on. I hope this can help.

icon clock
10 |1500

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

Thanks @jason.ramchandani

Please confirm my using library versions as indicated below.

  • httpx : 0.14.3
  • nest-asyncio : 1.3.3
Upvotes
6.7k 8 6 7

@daichi.yuasa.b Your httpx and nest-asyncio libs are correct. Also please can you confirm with your IT team that you have opened firewall access for the following (not sure which region you are in so I put all regions):


emea1.apps.cp.thomsonreuters.com 159.220.1.19
amers1.apps.cp.thomsonreuters.com 159.220.40.41
apac1.apps.cp.thomsonreuters.com 159.220.16.215

I have seen many issues where firewalls have been updated - so please do check that and confirm please.

icon clock
10 |1500

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

@jason.ramchandani Thanks for your advice.

Do I have opened firewall access for apac1.apps.cp.thomsonreuters.com to use Eikon API from Japan?


@daichi.yuasa.b Yes thats correct - see if that fixes things.

May I ask one more question?

Does Eikon API need to access on port 80/443 for apac1.apps.cp.thomsonreuters.com?

Show more comments
Upvotes
6.7k 8 6 7

@daichi.yuasa.b I need to check this and get back to you - apols for delay.

icon clock
10 |1500

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

Click below to post an Idea Post Idea