Problem using Eikon package

I got the following Exception :

2022-10-27 09:38:29,423 P[12616] [MainThread 23084] Error code 500 | Server Error: {"code":500,"message":"getaddrinfo EAI_AGAIN emea1.apps.cp.thomsonreuters.com:443","statusMessage":"Internal Server Error"} 2022-10-27 09:38:29,424 P[12616] [MainThread 23084] HTTP request failed: EikonError-Server Error: {"code":500,"message":"getaddrinfo EAI_AGAIN emea1.apps.cp.thomsonreuters.com:443","statusMessage":"Internal Server Error"}


when executing the following piece of code :

import eikon as ek

import configparser as cp

cfg = cp.ConfigParser()

cfg.read('eikon.cfg')

ek.set_app_key(cfg['eikon']['app_id'])

data = ek.get_timeseries('AAPL.O', # the RIC for Apple, Inc.

fields='*', # all fields

start_date='2021-01-01', # start date

end_date='2021-12-31') # end date


Best Answer

  • @ALQuant

    Sorry about the issue that you are facing.

    I checked this error (EAI_AGAIN) and found that it could relate to the DNS server, as shown here.

    EAI_AGAIN is a DNS lookup timed out error, means it is a network connectivity error or proxy related error. 

    You may need to contact your IT support team to verify if the DNS server works properly.

    I hope that this information is of help