Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 1 3

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,


eikon-data-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@mikolaj.stelmach01

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

@mikolaj.stelmach01

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

Upvotes
Accepted
79.2k 251 52 74

@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


1658453076164.png (7.9 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
3 0 1 3

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,



app-key.png (7.8 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@mikolaj.stelmach01

You can follow the troubleshooting steps mentioned in this article.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.