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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
11 7 2 3

Intraday Summaries Extraction Request fails with 500 Error code

I'm trying to extract tick data with a summary interval of 1 minute for one complete day by setting "QueryStartDate" and "QueryEndDate" in the "Condition" of my Extraction Request appropriately.

A perl script is scheduled to run everyday at 7 pm to get previous day's data. It worked without any problems until recently. But now, it keeps polling the server until it gets a HTTP 200 response for very a long time (around 1 hour) and eventually fails with a response code of 500 and message "Server closed connection without sending any data back".

If I re-run the script again next day manually, sometimes it works and sometimes it fails again with the same response code. I'm not sure why this is happening as the failure seems to be completely random or maybe depends on the time of the day at which extraction request is being performed.

Below is the Extraction Request. Any help regarding this would be greatly appreciated. Thanks!

{
   "ExtractionRequest" : {
      "@odata.type" : "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TickHistoryIntradaySummariesExtractionRequest",
      "ContentFieldNames" : [
         "Close Ask",
         "Close Bid",
         "High",
         "High Ask",
         "High Bid",
         "Last",
         "Low",
         "Low Ask",
         "Low Bid",
         "No. Asks",
         "No. Bids",
         "No. Trades",
         "Open",
         "Open Ask",
         "Open Bid",
         "Volume"
      ],
      "IdentifierList" : {
         "@odata.type" : "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
         "InstrumentIdentifiers" : [
            {
               "IdentifierType" : "Ric",
               "Identifier" : "FBTSZ7"
            },
            {
               "IdentifierType" : "Ric",
               "Identifier" : "FGBSZ7"
            },
            {
               "Identifier" : "FBTPZ7",
               "IdentifierType" : "Ric"
            },
            {
               "Identifier" : "FBONZ7",
               "IdentifierType" : "Ric"
            },
            {
               "Identifier" : "FOATZ7",
               "IdentifierType" : "Ric"
            },
            {
               "IdentifierType" : "Ric",
               "Identifier" : "FGBMZ7"
            },
            {
               "Identifier" : "FGBLZ7",
               "IdentifierType" : "Ric"
            },
            {
               "Identifier" : "FGBXZ7",
               "IdentifierType" : "Ric"
            },
            {
               "IdentifierType" : "Ric",
               "Identifier" : "FLGZ7"
            },
            {
               "Identifier" : "TYZ7",
               "IdentifierType" : "Ric"
            },
            {
               "Identifier" : "USZ7",
               "IdentifierType" : "Ric"
            },
            {
               "IdentifierType" : "Ric",
               "Identifier" : "AULZ7"
            },
            {
               "Identifier" : "FVZ7",
               "IdentifierType" : "Ric"
            },
            {
               "Identifier" : "TUZ7",
               "IdentifierType" : "Ric"
            },
            {
               "IdentifierType" : "Ric",
               "Identifier" : "FBTSH8"
            },
            {
               "Identifier" : "FGBSH8",
               "IdentifierType" : "Ric"
            },
            {
               "IdentifierType" : "Ric",
               "Identifier" : "FBTPH8"
            },
            {
               "Identifier" : "KOAH8",
               "IdentifierType" : "Ric"
            },
            {
               "Identifier" : "FOATH8",
               "IdentifierType" : "Ric"
            },
            {
               "Identifier" : "FGBMH8",
               "IdentifierType" : "Ric"
            },
            {
               "IdentifierType" : "Ric",
               "Identifier" : "FGBLH8"
            },
            {
               "IdentifierType" : "Ric",
               "Identifier" : "FGBXH8"
            },
            {
               "IdentifierType" : "Ric",
               "Identifier" : "FLGH8"
            },
            {
               "IdentifierType" : "Ric",
               "Identifier" : "TYH8"
            },
            {
               "IdentifierType" : "Ric",
               "Identifier" : "USH8"
            },
            {
               "Identifier" : "AULH8",
               "IdentifierType" : "Ric"
            },
            {
               "IdentifierType" : "Ric",
               "Identifier" : "FVH8"
            },
            {
               "IdentifierType" : "Ric",
               "Identifier" : "TUH8"
            }
         ],
         "ValidationOptions" : {
            "AllowHistoricalInstruments" : 1
         },
         "UseUserPreferencesForValidationOptions" : 0
      },
      "Condition" : {
         "MessageTimeStampIn" : "LocalExchangeTime",
         "ReportDateRangeType" : "Range",
         "QueryStartDate" : "2017-10-20T00:00:00Z",
         "QueryEndDate" : "2017-10-21T00:00:00Z",
         "SummaryInterval" : "OneMinute",
         "TimebarPersistence" : 1,
         "DisplaySourceRIC" : 1
      }
   }
}

It fails with this error message roughly after an hour

HTTP GET error code: 500
HTTP GET error message: Server closed connection without sending any data back
dss-rest-apidatascope-selectdssextractionerror-500
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 @ggoli,

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
78.8k 250 52 74

HTTP Status Code 500 is an internal server error indicating that the server encountered an unexpected condition which prevented it from fulfilling the request.

On Tuesday and Wednesday, there was a problem on the server, as shown in the alert.

Subject: Thomson Reuters Tick History version 2.0 - Custom Extractions - Disrupted

Problem Description: 
Thomson Reuters Tick History version 2.0 Custom Extractions are disrupted.

This is due to an issue at Thomson Reuters and affects customers globally.

The major incident management process has been invoked at Thomson Reuters to aid service restoration.

Affected Report Templates: Tick History Time and Sales, Tick History Market Depth, Tick History Intraday Summaries and Tick History Raw

Currently, the problem has been resolved. If you still see the issue, please let us know.

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.