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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 0 1 1

REST API GET Request sometimes returns 204 for latest scheduled extraction

Hi Refinitiv,

We are calling the REST API to retrieve the latest extraction for a schedule (HTTP GET request to /Extractions/Schedules('0x078e2339d14c9177')/LastExtraction).

On rare occasions we are receiving a HTTP 204 response (NO CONTENT). This is not documented as a potential response for this type of request. Would you be able to clarify how this response should be interpreted and why we are receiving it please?

dss-rest-apidssdatascope-selectextraction
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.

Upvotes
Accepted
15.9k 41 12 19

I have raised a service ticket #09901097 to clarify the proper handling technique, on your behalf. You should receive update from product team directly via email.

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.

Based on the Eikon Support team, the error code and status code details are the following:

The Error code 204 indicate that "A request returns 204 No Content if the requested resource has the null value."
Status Codes Description
200 OK A request that does not create a resource returns 200 OK if it is completed successfully and the value of the resource is not null. The response body will contain the value of the resource specified in the request URL.
201 Created A Create Entity or Invoke Action request that successfully creates a resource returns 201 Created. The response body will contain the resource created.
202 Accepted Accepted indicates that the request has been accepted and has not yet completed executing asynchronously. See Async Key Mechanism async example or the OData async specification for more details.
204 No Content A request returns 204 No Content if the requested resource has the null value.
206 Partial Content A request returns a 216 status code if the contents returned are partial. This is only used for range requests, i.e. when part of the contents of a stream are downloaded (generally for the purpose of resuming an interrupted download). Paging and change tracking do not return 206 responses.
Upvotes
15.9k 41 12 19

Hello @marketdata1,

HTTP 204 No content is documented in the DSS REST API documentation. It states

request returns 204 No Content if the requested resource has the null value.

I presume, the request you are making does not contain any data for server to returned to you.

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.

Upvotes
1 0 1 1

Hi, thanks for the response.

HTTP 204 is indeed detailed as a potential generic response to any HTTP request, but my question was more about what does it mean in this context (the call to /LastExtraction)?

After further investigation it would seem that 204 in this case means that a newly created Schedule has not yet run, and therefore although the Schedule does exist, the "last extraction" does not.


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.