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

question

Upvotes
Accepted
646 21 32 41

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-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
icon clock
10 |1500

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

AHS only

headers = {'Content-Type': 'application/json', 'x-tr-applicationid': '424809ff84564d4dbfa4d7fa54e07fc32bab6cde', 'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJBcGlWZXJzaW9uIjoiMSIsIkFwcEtleSI6IjQyNDgwOWZmODQ1NjRkNGRiZmE0ZDdmYTU0ZTA3ZmMzMmJhYjZjZGUiLCJBcHBTY29wZSI6InJhcGkiLCJMaWJyYXJ5TmFtZSI6IkVpa29uIFB5dGhvbiBMaWJyYXJ5IiwiTGlicmFyeVZlcnNpb24iOiIxLjEuNCIsImlhdCI6MTU5Nzk2NDUxNCwiZXhwIjoxNTk5MTc0MTE0fQ.y674k1PcdV4mNoNjh6VtpyJ-UH6oRoDYE_d32F-V6z0', 'Content-Length': '191'}

<AHS only>

Original post by user:

[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': '424809ff84564d4dbfa4d7fa54e07fc32bab6cde', 'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJBcGlWZXJzaW9uIjoiMSIsIkFwcEtleSI6IjQyNDgwOWZmODQ1NjRkNGRiZmE0ZDdmYTU0ZTA3ZmMzMmJhYjZjZGUiLCJBcHBTY29wZSI6InJhcGkiLCJMaWJyYXJ5TmFtZSI6IkVpa29uIFB5dGhvbiBMaWJyYXJ5IiwiTGlicmFyeVZlcnNpb24iOiIxLjEuNCIsImlhdCI6MTU5Nzk2NDUxNCwiZXhwIjoxNTk5MTc0MTE0fQ.y674k1PcdV4mNoNjh6VtpyJ-UH6oRoDYE_d32F-V6z0', 'Content-Length': '191'}

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question. Thanks, AHS

@igorg

Hi,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
18.2k 21 13 21

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 512.0 KiB each and 1.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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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