question

Upvotes
1 0 0 2

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 5.0 MiB each and 10.0 MiB total.

0 Answers

Click below to post an Idea Post Idea