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 ,
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