EikonError-UDF Core request failed. Gateway Time-out

Today I observe perpetual

HTTP request failed: EikonError-Backend error. 500 Internal Server Error

and

HTTP request failed: EikonError-UDF Core request failed. Gateway Time-out

errors. No updates of the code or scope of RICs from my side. Same code used to work up to today morning.

Example:

(Pdb) p ek.__version__
'1.1.10'
(Pdb) p params
{'start_date': datetime.datetime(2021, 11, 23, 18, 10, tzinfo=<DstTzInfo 'Europe/Moscow' MSK+3:00:00 STD>), 'end_date': datetime.datetime(2021, 11, 23, 18, 40, tzinfo=<DstTzInfo 'Europe/Moscow' MSK+3:00:00 STD>), 'interval': 'minute', 'count': 1, 'calendar': 'tradingdays', 'corax': 'adjusted', 'normalize': True}
(Pdb) p sys.version
'3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:18:16) [MSC v.1928 64 bit (AMD64)]'
(Pdb) ek.get_timeseries(["TSLA.O"], ["CLOSE"], **params)
2021-11-24 09:56:30,874 pyeikon DEBUG    Request:{'Entity': {'E': 'TimeSeries', 'W': {'rics': ['TSLA.O'], 'fields': ['CLOSE', 'TIMESTAMP'], 'interval': 'minute', 'startdate': '2021-11-23T18:10:00+03:00', 'enddate': '2021-11-23T18:40:00+03:00', 'count': 1, 'calendar': 'tradingdays', 'corax': 'adjusted'}}}
2021-11-24 09:56:30,876 pyeikon DEBUG    Request to http://127.0.0.1:9060/api/v1/data
        headers = {'Content-Type': 'application/json', 'x-tr-applicationid': '***', 'Authorization': 'Bearer ***'}
        params = None
2021-11-24 09:56:30,881 httpx._client DEBUG    HTTP Request: POST http://127.0.0.1:9060/api/v1/data "HTTP/1.1 307 Temporary Redirect"
2021-11-24 09:56:31,095 httpx._client DEBUG    HTTP Request: POST http://127.0.0.1:9060/api/udf "HTTP/1.1 200 OK"
2021-11-24 09:56:31,097 pyeikon DEBUG    HTTP Response code: 200
2021-11-24 09:56:31,104 pyeikon DEBUG    HTTP Response: {"ErrorCode":500,"ErrorMessage":"Backend error. 500 Internal Server Error"}
2021-11-24 09:56:31,106 pyeikon ERROR    Backend error. 500 Internal Server Error
2021-11-24 09:56:31,108 pyeikon ERROR    HTTP request failed: EikonError-Backend error. 500 Internal Server Error
*** eikon.eikonError.EikonError: Error code 500 | Backend error. 500 Internal Server Error

I have try/catch retries for errors like that, so I observe the following stream of alternating errors:

2021-11-24 09:53:51,059 root ERROR    Error code 2504 | UDF Core request failed. Gateway Time-out
2021-11-24 09:54:01,393 pyeikon ERROR    Backend error. 500 Internal Server Error
2021-11-24 09:54:01,393 pyeikon ERROR    HTTP request failed: EikonError-Backend error. 500 Internal Server Error
2021-11-24 09:54:01,394 root ERROR    Error code 500 | Backend error. 500 Internal Server Error
2021-11-24 09:54:11,739 pyeikon ERROR    Backend error. 500 Internal Server Error
2021-11-24 09:54:11,739 pyeikon ERROR    HTTP request failed: EikonError-Backend error. 500 Internal Server Error
2021-11-24 09:54:11,741 root ERROR    Error code 500 | Backend error. 500 Internal Server Error
2021-11-24 09:54:22,060 pyeikon ERROR    Backend error. 500 Internal Server Error
2021-11-24 09:54:22,061 pyeikon ERROR    HTTP request failed: EikonError-Backend error. 500 Internal Server Error
2021-11-24 09:54:22,064 root ERROR    Error code 500 | Backend error. 500 Internal Server Error
2021-11-24 09:54:51,598 pyeikon ERROR    UDF Core request failed. Gateway Time-out
2021-11-24 09:54:51,598 pyeikon ERROR    HTTP request failed: EikonError-UDF Core request failed. Gateway Time-out
2021-11-24 09:54:51,599 root ERROR    Error code 2504 | UDF Core request failed. Gateway Time-out
2021-11-24 09:55:20,847 pyeikon ERROR    UDF Core request failed. Gateway Time-out
2021-11-24 09:55:20,848 pyeikon ERROR    HTTP request failed: EikonError-UDF Core request failed. Gateway Time-out
2021-11-24 09:55:20,851 root ERROR    Error code 2504 | UDF Core request failed. Gateway Time-out
2021-11-24 09:55:31,193 pyeikon ERROR    Backend error. 500 Internal Server Error
2021-11-24 09:55:31,194 pyeikon ERROR    HTTP request failed: EikonError-Backend error. 500 Internal Server Error
2021-11-24 09:55:31,197 root ERROR    Error code 500 | Backend error. 500 Internal Server Error
2021-11-24 09:55:41,550 pyeikon ERROR    Backend error. 500 Internal Server Error
2021-11-24 09:55:41,550 pyeikon ERROR    HTTP request failed: EikonError-Backend error. 500 Internal Server Error
2021-11-24 09:55:41,552 root ERROR    Error code 500 | Backend error. 500 Internal Server Error
2021-11-24 09:55:51,916 pyeikon ERROR    Backend error. 500 Internal Server Error
2021-11-24 09:55:51,916 pyeikon ERROR    HTTP request failed: EikonError-Backend error. 500 Internal Server Error
2021-11-24 09:55:51,918 root ERROR    Error code 500 | Backend error. 500 Internal Server Error
2021-11-24 09:56:02,267 pyeikon ERROR    Backend error. 500 Internal Server Error
2021-11-24 09:56:02,267 pyeikon ERROR    HTTP request failed: EikonError-Backend error. 500 Internal Server Error
2021-11-24 09:56:02,270 root ERROR    Error code 500 | Backend error. 500 Internal Server Error
2021-11-24 09:56:31,490 pyeikon ERROR    UDF Core request failed. Gateway Time-out
2021-11-24 09:56:31,490 pyeikon ERROR    HTTP request failed: EikonError-UDF Core request failed. Gateway Time-out
2021-11-24 09:56:31,493 root ERROR    Error code 2504 | UDF Core request failed. Gateway Time-out
2021-11-24 09:56:41,826 pyeikon ERROR    Backend error. 500 Internal Server Error
2021-11-24 09:56:41,827 pyeikon ERROR    HTTP request failed: EikonError-Backend error. 500 Internal Server Error
2021-11-24 09:56:41,829 root ERROR    Error code 500 | Backend error. 500 Internal Server Error
2021-11-24 09:57:11,036 pyeikon ERROR    UDF Core request failed. Gateway Time-out
2021-11-24 09:57:11,037 pyeikon ERROR    HTTP request failed: EikonError-UDF Core request failed. Gateway Time-out

Best Answer

Answers