For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
646 6 13 25

How to handle 'timeseries request failed'

Hello,

this is the third problem I've got after Eikon was upgraded to 4.0.52 and Eikon Python module to 1.1.4.

[2020-08-20 19:02:19,799;s] - [DEBUG] - [send_json_request] - Request:{'Entity': {'E': 'TimeSeries', 'W': {'rics': ['AAPL.MX'], 'fields': ['VOLUME;VALUE;', 'TIMESTAMP'], 'interval': 'tick', 'startdate': '2020-08-20T20:00:00', 'enddate': '2020-08-20T20:10:00'}}}
[2020-08-20 19:02:19,800;s] - [DEBUG] - [log] - Request to http://localhost:9060/api/v1/data
   headers = {'Content-Type': 'application/json', 'x-tr-applicationid': 'xxxxxxxx', 'Authorization': 'Bearer xxxxxxxxxxxxxxxx', 'Content-Length': '191'}
   params = None
[2020-08-20 19:02:19,893;s] - [DEBUG] - [send_json_request] - HTTP Response code: 200
[2020-08-20 19:02:19,894;s] - [DEBUG] - [send_json_request] - HTTP Response: {"timeseriesData":[{"dataPoints":null,"errorCode":"TSIError","errorMessage":"Error: TSIRequestFailed, ErrorCode: TA-TSIRequestFailed, Fault: TSIError, Description: TimeSeries request failed","ric":"AAPL.MX","statusCode":"Error"}]}
[2020-08-20 19:02:19,894;s] - [WARNING] - [get_timeseries] - Error with AAPL.MX: TimeSeries request failed
[2020-08-20 19:02:19,894;s] - [ERROR] - [get_timeseries] - AAPL.MX: TimeSeries request failed | 

I didn't see this error before the upgrade. How should we handle it? The logic re-tried 5 times and gave up. But when I re-ran the script 2 mins later, everything went fine.

What's the meaning of this error? Description is very generic.

Thanks,

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
18k 21 12 20

Hi @igorg

I tested both send_json_request and get_timeseries functions

And both of them returned "no data available" error.


ahs.png (54.9 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Hi.

How should I use this information? And how does it answer my question?

Thanks

Hi @igorg

Because you mentioned that it works fine.

So I tested the api call with the same parameters with you.

It does not work for me, so I want to cross-check with you whether it works fine for you sometime?

igorg avatar image igorg chavalit-jintamalit

Please check my original post. It failed 5 times. Then in 2 minutes it began to work fine.


My questions are:

1. what does this error mean?

2. what can I do to avoid this error since it's temporary error and I cannot simply ignore it. It may lead to missed data during the collection

Show more comments
Click below to post an Idea Post Idea