T&C Reponse.headers['Location'] URL gets 404:"Not Found" error

The entire flow (Generating the token, fetching the from T&C with same payload ) works fine with smaller number of instruments(200). However, with 16k records it gives Status Code 202 and while using the URL shared in the response.headers['Location'], we get error 404 i.e. resource not found.

Following are the payloads being used.

First attempt ( Attempt 0):

URL: https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractWithNotes/

Payload:

headers = {

'Prefer': 'respond-async',

'Content-Type': 'application/json',

'Authorization': 'Token%s'%token

}


Second Attempt ( Attempt 1, in case of 202):

URL: https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractWithNotesResult(ExtractionId='0x088bfa16b998eebf')

Payload:

headers = {

'Prefer': 'respond-async',

'Authorization': 'Token%s'%token

}



Best Answer