Attaching two files here for reference.
Is there any reason why retrieving fuel futures sometimes works and sometimes does not? Please reference my log files for the same code executed twice.
The timeout depends on many factors.
We can start with 60 seconds.
I have removed the log files.
@profision
Thank you for reaching out to us. I found several the "ReadTimeout('The read operation timed out')" message in the 20250501-1908-24284-lseg-data-lib.logfile.
[http_service] - [request] - An error occurred while requesting URL('https://api.refinitiv.com/data/datagrid/beta1/'). ReadTimeout('The read operation timed out')
The request timeout in the request message is 20 seconds.
[2025-05-01T19:10:12.817933+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [28172 - MainThread] - [http_service] - [build_request] - HTTP Request id 3 url = https://api.refinitiv.com/data/datagrid/beta1/ method = POST headers = {'request-timeout': '20', '
You may try to increase its timeout value by using the following code.
config = ld.get_config() config.set_param("http.request-timeout", 6000) ld.open_session()
Is the suggestion here to set the timeout to 100 minutes (6000 seconds)?
@Jirapongse
This is just to verify that if it relates to the HTTP request timeout.
If this configuration works, you can change it to other values.
This seems to have resolved the issue most of the time.
What's a recommended timeout to set and can you remove my log files from this thread for security reasons?