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')"

Best Answer

  • Jirapongse
    Jirapongse admin
    Answer ✓

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