Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /
avatar image
Question by leiy · Sep 24, 2018 at 03:39 PM · eikon data api

List of error code or error string returned by get_data and get_timeseries

Are there any document that demonstrates the list of error code or error string the Python Data API call get_data and get_timeseries may receive?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov. · Sep 25, 2018 at 05:18 PM

You can get the error code from the base class for exceptions. E.g.

try:
	ek.get_data(...)
except ek.EikonError as err:
	print(err.code)

Does this help?

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Answer by Alex Putkov. · Sep 24, 2018 at 04:41 PM

There's no specific documentation listing all possible error conditions. The Eikon Python library does basic checks for the validity of the inputs and raises an exception if inputs are invalid. In addition to this the library propagates errors returned from the backend in response to data requests. The data retrieval is via HTTP and theoretically you can expect any HTTP error.

Comment

People who like this

0 Show 3 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
leiy · Sep 24, 2018 at 05:08 PM 0
Share

In this case, is there any way, in Python Data API, that can help tell what error this is, except inferring this error from the error text? For example, the caught exception text at calling get_data is "Error code 400 | Backend error. 400 Bad Request". Any kind of enum indicating error code will work for us.

avatar image
REFINITIV
Alex Putkov. ♦♦ leiy · Sep 24, 2018 at 05:38 PM 0
Share

I'm not sure I understand the question. The error code provided with the backend error (in your example it is 400) corresponds to HTTP response status code, which is an enumeration. Does HTTP response status enumeration provide what you're looking for?

avatar image
leiy Alex Putkov. ♦♦ · Sep 25, 2018 at 02:31 PM 0
Share

The error is caught by try and catch approach, and the error text is the content from the exception object. However, it's not reliable to have the program conduct string match with the error text to identify what error code it has. I was thusly asking whether there is any kind of information that the Python API can acquire, except the exception caught by the try-catch block, to identify the error code, like the errno used in C language.

avatar image
Answer by leiy · Sep 28, 2018 at 09:45 AM

This helps. Thanks.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
7 People are following this question.

Related Questions

Screener vs Eikon Advanced search UI discrepencies

[Python API] any EIKON field to get TotalVotingShares for equities?

Code 500 Internal Server Error

How can I access Supply Chain data using Eikon Data API? (Ex. 'APPL.O VCHAINS')

Unable to get data for RIC

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges