I am trying to download historical ownership data for S&P500 constituents. I am only able to download data for one quarter at a time, and if I try to increase the period, I get 408 error | HTTP Timeout
Please help me with a better solution
Upgrade from Eikon -> Workspace. Learn about programming differences.
For a deeper look into our Eikon Data API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials | Articles
I am trying to download historical ownership data for S&P500 constituents. I am only able to download data for one quarter at a time, and if I try to increase the period, I get 408 error | HTTP Timeout
Please help me with a better solution
Hi @libraryeikon02 ,
Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text on the left side of the appropriate reply? This will guide all community members who have a similar question.
Thanks,
AHS
Hi,
Please be informed that a reply has been verified as correct in answering the question, and marked as such.
Thanks,
AHS
Hi @libraryeikon02 ,
Sorry about the issue that you are facing.
It is an HTTP request timeout. I checked and found that the timeout in the API is around 15 seconds. If Eikon doesn't respond to the ticket request within this timeout, it will throw this error.
EikonError: Error code 408 | HTTP TimeoutException: .
You can contact the Eikon Data API support team directly via the Eikon support team to verify this problem in the Eikon Data API.
You can try to change the timeout value by calling the following method.
ek.set_timeout(100)
If it doesn't help, you may try to reduce the number of requested items or reduce the time range when requesting data.
I hope that this information is of help
Plus, I tried with setting timeout to 100 and the code is executed properly