Hi, I am using the following code to connect to Refinitiv using the Refinitiv-data module, but I am encountering some session error. What can be done about it?
Hi, I am using the following code to connect to Refinitiv using the Refinitiv-data module, but I am encountering some session error. What can be done about it?
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
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
AHS
Hi @donia.augustine ,
As seen in the code you provided, seems like you're using the Platform session, could you please confirm that the account used is RDP (Refinitiv Data Platform) account or the account that used to login to Eikon Desktop/Refinitiv Workspace? As the platform session requires the Data Platform account as mentioned in Quick Start Guide of RD Library
or if you don't have a platform account, you can try opening the desktop session with the code below (and having the Eikon Desktop or Refinitiv Workspace up and running on the same machine used to run the code)
rd.open_session(app_key = APP_KEY)
I hope this helps and please let me know in case you have any further questions.
Thank you for reaching out to us.
I found the ConnectionTimeout('timed out') error in on the screenshot. It could be the connection issue.
You can enable the debug log and increase timeout value by using the following code.
config = rd.get_config() config.set_param("logs.transports.console.enabled",True) config.set_param("logs.level","debug") config.set_param("http.request-timeout", 60000) session = rd.session.platform.Definition( app_key = '87***', grant = rd.session.platform.GrantPassword( username='***', password='***') ).get_session()
You can share the console log. Please remove your username and password from the log before sharing.