Eikon 404 error:
Hi, I'm trying to get data from the Eikon api. I've set my Eikon App key as follows:
ek.set_app_key('xxxxxxxx')
and then I try to retrieve data with:
df,e = ek.get_data('REUTERS','TR.RIC')
I get the following error
Client Error: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /api/v1/data</pre>
</body>
</html>
My Eikon is 1.1.10 so it's the newest. The Eikon desktop application is version 4.0.54, which is the newest version. I'm not trying to post data where this is a GET method call from Postman (and also browser). I simply don't know why this is not giving me data.
Best Answer
-
I checked the entitlements on your Eikon account. You subscribe to the low tier Eikon variant named Eikon Core, which does not include access to Eikon Data APIs. If you would like the capability to retrieve Refinitiv data programmatically, please consider a higher tier Refinitiv product that does include this capability. If I understood you correctly, you also mentioned that your objective is to consume Refinitiv data in a Web service. If this is the case, please be informed that any Eikon variant is a single user service. The data usage license granted with this service permits the use of any data retrieved from Eikon for individual user's use only. If you'd like to utilize Refinitiv data in any kind of enterprise or multiuser application, please consider an enterprise product that permits the data usage in the manner in which you intend to utilize it. Your Refinitiv account manager or Refinitiv Sales Team will be happy to help you select the product that best fits your use case.
0
Answers
-
Hello @olafur,
As mentioned in the previous question, have you tried the Eikon troubleshooting guide.
You cannot invoke the API requests from browser or postman. Please use Eikon libraries only (of which you have the latest version).
If you are still having issues following the quickstart and troubleshooting article, please attach the log files for us to help troubleshoot. You can also use API level logging as shown in the previous question.
0 -
Hi, I think you're misunderstanding me. We are not calling the python via Postman, but through a web servcie which calls the python code. The python code is giving me the error which I mentioned. I did look at the eikon troubleshooting guide but I found nothing that helps me. I tried what was suggested there, like if I have the latest api version and eikon application version.
I think maybe there is something wrong with my api key. Because when entered a invalid key, I'm getting the same error message.
0 -
Is it possible for you to test the python code directly without the web service. Just open up a python terminal, and issue the following commands -
>>> import eikon as ek
>>> ek.set_app_key('VALID_APP_KEY')
>>> df, err = ek.get_data('GOOG.O', ['TR.Revenue', 'TR.GrossProfit'])
>>> print(df)
Instrument Revenue Gross Profit
0 GOOG.O 182527000000 97795000000Here is the response if invalid app key is used.
>>> import eikon as ek
>>> ek.set_app_key('INVALID_APP_KEY')
>>> df, err = ek.get_data('GOOG.O', ['TR.Revenue', 'TR.GrossProfit'])
2021-06-02 12:17:57,956 P[4796] [MainThread 6904] Error code 403 | Client Error: {"ErrorCode":1401,"ErrorMessage":"Application id INVALID_APP_KEY is invalid"}
2021-06-02 12:17:57,957 P[4796] [MainThread 6904] HTTP request failed: EikonError-Client Error: {"ErrorCode":1401,"ErrorMessage":"Application id INVALID_APP_KEY is invalid"}
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\gsbal\Envs\eikon\lib\site-packages\eikon\data_grid.py", line 192, in get_data
if result.get('responses'):
AttributeError: 'NoneType' object has no attribute 'get'You haven't attached the application logs as requested!
0 -
Note that Eikon desktop also has to be running on the same machine as mentioned in the troubleshooting guide.
0 -
I went through the troubleshooting guide again. It appears that the APIPROXY is not running. I tried restarting the computer, but it didn't work. When I try http://localhost:9060/api/status I get error connection in return instead of json response like stated in the troubleshooting guide. I was wondering how can I restart the APIPROXY?
I tried setting up eikon application on a different machine, but still I'm not able to get response from http://localhost:9060/api/status, Its like the service is also not running on the other machine. This is probably what is causing the eikon api returning me 404 error. But I've restarted both of the machines several times, but still I cant get the APIPROXY running.
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛