question

Upvotes
Accepted
1 2 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')"

pythonapitick-history-rest-api
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.

Hello @linda.kilpatrick

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS


1 Answer

· Write an Answer
Upvotes
Accepted
78.9k 250 52 74

@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.