I find I am receiving 429 responses all too often. I have limited my code so that it won't make a request more often than every 2 seconds.
I have added log lines to my code for every time it makes a request:
These are the only requests I have made inside this time period:
2019-02-08 15:28:18,291 - actualMakeCall: https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractRaw
2019-02-08 15:28:22,500 - actualMakeCall: https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractRaw
2019-02-08 15:28:26,774 - actualMakeCall: https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractWithNotes
2019-02-08 15:28:30,969 - actualMakeCall: https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractWithNotes
2019-02-08 15:28:35,187 - actualMakeCall: https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractWithNotes
2019-02-08 15:28:39,410 - actualMakeCall: https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractRaw
2019-02-08 15:28:52,400 - actualMakeCall: https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractRaw
But the request at 15:28:39,410 received a 429 response:
2019-02-08 15:28:39,410 [pool-6-thread-1] - actualMakeCall: https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractRaw
2019-02-08 15:28:50,349 [pool-6-thread-1] - this is httpstatuscodeexception: {"error":{"message":"Failure reason: UserExtractionLimitExceeded: 9019523 has 2 ET2 extractions, limit is 2"}}