For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 0 0 0

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

}



#technologydss-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 @amitbaxi

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

@amitbaxi

Hi,

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

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
79.4k 253 52 74

@amitbaxi

Thank you for reaching out to us.

Did the client use this URL (https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractWithNotesResult(ExtractionId='0x088bfa16b998eebf')) with the HTTP GET request?

1689328016085.png

I got 404 Not Found when using the URL with the HTTP POST request.

1689327964812.png



1689328016085.png (67.7 KiB)
1689327964812.png (57.9 KiB)
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.