Getting a "ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the

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


Best Answer

  • @puneet.mishra

    Could you include the code snippet with the loop, so I could try reproducing the issue? It would also be helpful to know the version of Python you're using and the version of RDP library. The latter you can get by running

    import refinitiv.dataplatform as rdp
    rdp.__version__