question

Upvotes
Accepted
1 0 1 1

Getting intermittent error with message 'Connection reset by peer'.

While running a large intraday tick history job where I poll the endpoint to check if the job has finished, I receive an intermittent interruption which produces the following error message:

errorMessage": "('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))",
  "errorType": "ConnectionError"

Why does this happen and how can I prevent such an error in future?

This are my extractions urls:

"https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractRawResult(ExtractionId='0x078d7e7e1d6c8f69')"

"https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractRawResult(ExtractionId='0x078d7ffc787c8f7f')"

pythontick-history-rest-apiapi
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
38.1k 71 35 53

@linda.kilpatrick

From the error message, the server has cut the connection. You can directly contact the Refinitiv Tick History team via MyRefinitiv to verify the server's status.

In this case, I think that the extractionID is still valid so you can reconnect to the server to check the status of the extraction when the server is ready.

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