question

Upvotes
Accepted
1 1 2 3

Refinitiv Data Platform API in Python - Unable to connect

I have just been migrated over to Refinitiv Workspace. I am primarily interested in data retrieval via the Refinitiv Data Platform API in Python. I have tried to get this running in Python (outside of Refinitiv Workspace) by following the examples in CodeBook, but I am getting an error saying “Check if Desktop is running.” I am logged into Refinitiv Workspace on my MacBook, so I am not sure what is causing this error.


Here is what I have tried in Python:


import refinitiv.dataplatform.eikon as ek

ek.set_app_key('#### eikon app key ####')


and


import refinitiv.dataplatform as rdp

rdp.open_desktop_session('#### eikon app key ####')


This is the error message I am getting in both cases:


ERROR!!! An error occurred while requesting URL('http://localhost:9000/api/status'). ReadTimeout('') ERROR!!! An error occurred while requesting URL('http://localhost:36036/api/status'). ConnectError('All connection attempts failed') Error: no proxy address identified. Check if Desktop is running. ERROR!!! An error occurred while requesting URL('http://localhost:9000/api/handshake'). RemoteProtocolError("illegal status line: bytearray(b'\\xff\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x01\\x7fe\\x00t-Encoding: gzip, deflate, br')")


Please could you assist.

refinitiv-dataplatform-eikonpython apirefinitiv-dataplatform-libraries
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.

this comment is only visible to AHS and the original poster

The app key is a credential and should be kept secret so it was masked
original app key is '3330aa46ca164999bd575a3e89dec7130f17e61d'

BR,
AHS

Hello @miguel.l ,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the 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

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

Thanks,


AHS


1 Answer

· Write an Answer
Upvotes
Accepted
14.2k 30 5 10

hi @miguel.l

Have you tried restarting Eikon and/or your PC? If it still does not resolve, please see this troubleshooting guide and post your log files here along with the current versions that you're using of

  • Eikon desktop
  • Eikon library
  • Python
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.