question

Upvotes
Accepted
1 1 2 2

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 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
78.1k 246 52 72

@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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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