I get lot of eikon errors listed below while requesting data from Eikon Python API.
Listed below few examples where I am requesting data from Eikon :
1) ek.get_data(["0#.SPX"],[{'TR.CompanyMarketCap':{'sort_dir':'desc'}}])
2) ek.get_timeseries(df_data['Instrument'].iloc[10:20].to_list(), start_date =datetime.today()+timedelta(-548) ,end_date = datetime.today(),fields = "CLOSE")
Below is the error message whenever it throws error. Error does not come on every request I make, but error causing or hampering during production hours (due to error I had to reload the full model from start to achieve the desired output).
I use both ways to import eikon (either import refinitiv.dataplatform.eikon as ek OR import eikon as ek). Error come both cases.
Error message :
"raise EikonError(int(server_response['ErrorCode']), error_message)
eikon.eikonError.EikonError: Error code 2504 | UDF Core request failed. Gateway Time-out."