Error while using R API

Hello,

while trying to get data from eikonapir package in R I get the following error:


Error in curl::curl_fetch_memory(url, handle = handle) :

Failed to connect to localhost port 9000: Connection refused


I know this is stated in some of the post on the page (e.g. https://community.developers.refinitiv.com/questions/70999/connection-error-with-r-application.html), but there are still no clear answer to me how could it be fixed.


Regards,


Tagged:

Best Answer

  • Jirapongse
    Jirapongse admin
    Answer ✓

    @mikolaj.stelmach01

    You can set a TCP port to 9060 by using the following code.

    Call the set_proxy_port before calling set_app_id.

    set_proxy_port(9060L)
    set_app_id('<application key>')

    Please make sure that the Eikon or Workspace runs properly. Eikon Data API requires Eikon to run on the same machine.

    You can verify if the Eikon API Proxy is running by accessing http://127.0.0.1:9060/api/status via a web browser.

    1658453076164.png

Answers

  • Hello,

    now the messege is sligthly different:


    Error in curl::curl_fetch_memory(url, handle = handle) :

    Failed to connect to localhost port 9060: Connection refused


    And unfortunately, the link you provided also do not return any message, so Eikon API Proxy may not be running? I have also found out that App Key Generator is not working at all (attached App Key.PNG; I had just written previously our app_id, which was working) - maybe yet some problem with it?
    Regards,


  • @mikolaj.stelmach01

    You can follow the troubleshooting steps mentioned in this article.