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
16 2 2 5

Error connecting to Eikon Desktop API

Hello,


I am trying to run the below script:

import eikon as ek

ek.set_app_key('xxxxxxxxx')

test=ek.get_news_headlines("AAPL.O",count=10)


and I get the below error:

P[17764] [MainThread 444] Error code 500 | Server Error: {"code":500,"message":"getaddrinfo ENOTFOUND emea1.apps.cp.extranet.thomsonreuters.biz emea1.apps.cp.extranet.thomsonreuters.biz:443","statusMessage":"Internal Server Error"}

P[17764] [MainThread 444] HTTP request failed: EikonError-Server Error: {"code":500,"message":"getaddrinfo ENOTFOUND emea1.apps.cp.extranet.thomsonreuters.biz emea1.apps.cp.extranet.thomsonreuters.biz:443","statusMessage":"Internal Server Error"}

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-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.

Hello @s397432,

It may help to indicate if you are seeing error Server error 500/getaddrinfo ENOTFOUND consistently, or is this an intermittent observation?

This error appeared after I was switched to full subscription after my trial. This is the first time I try to use the API after the switch. Before it was working well under the trial

Hello @s397432,

Thanks.

Does the error in your case manifest consistently, if you re-run the request script a couple of times?.

Show more comments

Hello @s397432

Do you have a change to test a connection to emea1.apps.cp.extranet.thomsonreuters.biz as suggested by my colleague?

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS

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

Thanks,


AHS

Upvote
Accepted
36 0 0 0

We had a similar problem. It seems to result from the fact that the Python run does not find the Eikon port.

We solved the problem by uninstalling (several) versions of Python and to make a clean installation with Pip (and not Conda). Also we no longer used a virtual environment.

So without having identified the exact problem, we could get a fully operational installation.


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.

Thank you, I am using Conda, so your answer makes sense.

Upvotes
35 1 2 3

I think your code is correct, except that you should write "test" at the end. I have verified your code. (The App Key is hidden.)

Perhaps the cause is that your EIKON or Workspace is not online. (Temporarily offline / Not running App)


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.

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.