I'm using the refinitiv dataplatform package in python along with the get_timeseries() function. My code runs in a loop and calls the get_timeseries function every 5 minutes. After the first call to the function, I receive the ConnectionResetError: [WinError 10054] error for every subsequent function call.
Full Error:
Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
File "c:\programdata\anaconda3\lib\asyncio\events.py", line 81, in _run
self._context.run(self._callback, *self._args)
File "c:\programdata\anaconda3\lib\asyncio\proactor_events.py", line 162, in _call_connection_lost
self._sock.shutdown(socket.SHUT_RDWR)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host