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 svilen · May 13, 2020 at 11:44 AM · eikonapir

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"}]}

http://localhost:9000/api/v1/

{"code":404,"message":"Not Found","statusMessage":"Not Found"}

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 jirapongse.phuriphanvichai · Jun 15, 2020 at 05:26 AM

@svilen

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.

Comment

People who like this

0 Show 2 · 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
svilen · Jun 24, 2020 at 11:12 AM 0
Share

@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?

avatar image
REFINITIV
jirapongse.phuriphanvichai ♦♦ svilen · Jun 24, 2020 at 11:19 AM 0
Share

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.

1592997523529.png (91.2 KiB)
avatar image
REFINITIV
Answer by jason.ramchandani · May 13, 2020 at 12:09 PM

Hi @svilen if you are using the eikonapir library - you would need to uninstall and reinstall a new updated library which fixed some bugs - details are available in this post

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
svilen · May 13, 2020 at 12:36 PM 0
Share

@jason.ramchandani I reinstalled the library but it did not helped and I have the same error.

avatar image
REFINITIV
jason.ramchandani ♦♦ · May 13, 2020 at 12:42 PM 0
Share

Have you tried

set_proxy_port(9000L)
avatar image
svilen jason.ramchandani ♦♦ · May 13, 2020 at 12:46 PM 0
Share

Yes, but with no success

avatar image
REFINITIV
Answer by zoya.farberov · Jun 05, 2020 at 10:39 PM

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.

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 >
12 People are following this question.

Related Questions

eikonapir: how to get dates returned from get_data()

how to use eikonapi fetching Bond data in R?

R eikonapir: returns data.frame with NA only

Eikon API timeseries time field in start and end date string

announcement: updated version of eikonapir R package

  • 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