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 ✭✭✭✭✭
    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

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.