For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 1 1

Getting a "ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host" error while using the dataplatform API in python.

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


eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonconnection-error
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
39.2k 75 11 27

@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__
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea