Hi everyone,
I'm currently building an application using databricks, and in this process I'm migrating some scripts that were previously running on my local PC to run in a databricks notebook.
I'm using refinitiv-data-1.6.2 to query the data.
This is my auth flow :
rd.open_session(config_name='credentials.json')
with credentials.json :
{
"logs": {
"level": "debug",
"transports": {
"console": {
"enabled": false
},
"file": {
"enabled": false,
"name": "refinitiv-data-lib.log"
}
}
},
"sessions": {
"default": "platform.rdp",
"platform": {
"rdp": {
"app-key": APPKEY,
"username": USERNAME,
"password": PASSWORD,
"signon_contro":"true"
},
"deployed": {
"app-key": APPKEY,
"realtime-distribution-system": {
"url" : "ws://ADS1:15000",
"dacs" : {
"username" : USERNAME,
"application-id" : ID,
"position" : ""
}
}
}
},
"desktop": {
"workspace": {
"app-key": APPKEY
}
}
}
}
When I try to test to connection with a simple query :
rd.get_history("AAPL.O")
I get the following error:
An error occurred while requesting URL('https://api.refinitiv.com/data/historical-pricing/v1/views/interday-summaries/AAPL.O').
ConnectError('[Errno 104] Connection reset by peer')
RDError: Error code -1 | [Errno 104] Connection reset by peer
---------------------------------------------------------------------------
RDError Traceback (most recent call last)
File <command-3082401349704677>, line 1
----> 1 rd.get_history("AAPL.O")
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-0ef252e0-3959-4315-a0ad-c721bed19027/lib/python3.11/site-packages/refinitiv/data/_access_layer/get_history_func.py:206, in get_history(universe, fields, interval, start, end, adjustments, count, use_field_names_in_headers, parameters)
204 if exceptions and all(exceptions):
205 except_msg = "\n\n".join(exceptions)
--> 206 raise RDError(-1, except_msg)
208 if not any({adc_data, hp_data, cust_inst_data}):
209 return DataFrame()
RDError: Error code -1 | [Errno 104] Connection reset by peer
I understand that this is caused by the fact that the API connection goes through a proxy that is probably not allowed on the databricks virtual machine, but i'm trying to find way around this issue, or another connection method that would be more adapted to this.
Let me know if you need more information on my databricks setup, or if you have the contact info of someone I could get in contact with to solve this.
Thank you