eikonapir - error 502
I am new in eikon api for R. When I try to get data I have this error:
> get_data("MSFT.O","TR.ISIN", debug=TRUE)
[1] "Request *************************************"
{"Entity":{"E":["DataGrid"],"W":{"instruments":[["MSFT.O"]],"fields":[{"name":["TR.ISIN"]}]}}}
[1] "Response *************************************"
[1] "<!DOCTYPE html>...Requested URL:\r\n\t\t\t</div>\r\n\t\t\r\n\t\t\t<div class=\"span6\">\r\n\t\t\t\thttp://localhost:9000/api/v1/data\r\n\t\t\t</div>\r\n\t\t</div>\r\n\r\n\t\t<div class=\"row\">\r\n\t\t\t<div class=\"span2 label\">\r\n\t\t\t\tReason:\r\n\t\t\t</div>\r\n\t\t\r\n\t\t\t<div class=\"span6\">\r\n\t\t\t\tInvalid argument\r\n\t\t\t</div>\r\n\t\t</div>..."
[1] "Response status *************************************"
[1] 502
Error in print.default("HTTP Error, code= ", response$status_code, sep = "") :
invalid 'digits' argument
I think it used to work several weeks ago.
There is a proxy in my enviroment but I do not have to explicitly set it in order to install packages or download files in R.
http://localhost:9000/ping?all
{"port":9000,"mode":"eikon4","pid":30764,"hasSecure":true,"startedTime":"Wed May 13 2020 09:25:01 GMT+0300 (FLE Daylight Time)","subApps":[{"path":"/heap"},{"path":"/ping"},{"path":"/sxs","data":{"hasSecure":true,"sxsApps":{}}},{"path":"/api"},{"path":"/sxs/v1/services/messenger"}]}
{"code":404,"message":"Not Found","statusMessage":"Not Found"}
Best Answer
-
You can do a quick check with the curl command, as shown below.
curl -H "Content-Type: application/json" -H "x-tr-applicationid: <app_id>" -L -X POST -v -d "{\"Entity\": {\"E\": \"DataGrid\",\"W\": {\"fields\": [{\"name\": \"TR.ISIN\"}],\"instruments\": [\"MSFT.O\"]}}}" http://localhost:9000/api/v1/data
Please change <app_id> to your application id.
If the curl command gets the same error code 502, it could be a problem in the machine's settings.
0
Answers
-
-
@jason.ramchandani I reinstalled the library but it did not helped and I have the same error.
0 -
Have you tried
set_proxy_port(9000L)
0 -
Yes, but with no success
0 -
Hello @svilen,
In addition to the answer by @jason.ramchandani, please also note, that Eikonapir is not officially supported by Refinitiv. You can reach the creator for support directly at EikonAPIR on GitHub.
As an additional approach, and as environment setup issue appears to be likely, you may find article Eikon Data API(Python) Troubleshooting to be of help, especially so if you have any Python experience. If this is the case, you may also be on an easier path by following Quick Start For EDAPI Python. Once you are seeing the results in Python, move to R next.
0 -
@jirapongse.phuriphanvichai I've checked with the curl command (outside R) and I get the same error message. Could you please tell me which machine's settings could cause the issue?
0 -
You mentioned about proxy in the question. It could be a proxy or firewall.
If you know the proxy settings, you can try to run the curl command with the proxy parameters.
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 中文论坛