Hi, I saw there is the same question on the forum, but without any actual solution. Sometimes, when I try to make a request:
import PyDSWS ds = PyDSWS.Datastream(username=RefinitivCredentials.username, password=RefinitivCredentials.password) data = ds.get_data(tickers=tickers, start=start_date, end=end_date, freq=frequency, fields=fields)
I get this:
File "/usr/local/lib/python3.7/site-packages/PyDSWS/datastream.py", line 102, in get_data
df = self.from_json_to_df(response)
File "/usr/local/lib/python3.7/site-packages/PyDSWS/datastream.py", line 41, in from_json_to_df
if response_json['Dates']:
KeyError: 'Dates'"
Moreover, it seems that it does not always happen and I'm not actually able to reproduce it through https://product.datastream.com/DswsClient/Docs/TestRestV1.aspx?