DSS API ScheduleExtractNow no response after 60 seconds

We use the following endpoint:
to force a schedule on DSS REST API.
We have noticed that no response comes back after 30 seconds. For long running requests we would expect a response with a HTTP StatusCode of 202 Accepted and a "monitor" url in the Location header to come back after that time.
We do not provide the Prefer header.
The call made before ScheduleExtractNow - RequestToken is successful.
I can provide ClientSessionId if required?
Best Answer
-
According to the Async key machanism, the API defaults to synchronous responses.
For long running requests, you need to define "respond-async" in the Prefer header to receive asynchronous responses such as HTTP statusCode of 202 Accepted and a monitor url.
Could you try adding the "respond-async" in the Prefer header?
0
Answers
-
I can add the "Prefer:respond-async" header, but let me just understand what is going on at the moment when I send requests to the API.
Ok so my request is treated as synchronous, so should I wait indefinitely for a response from the API? I will not receive a 202 response after a certain amount of time?
What does the "30 second timeout" refer to in the following documentation:
under the "How can I set my request to be asunchronous or sunchronous?" header?
0 -
If the request is synchronous, you need to wait indefinitely for a
response from API. You will not receive any 202 response. However, as
stated in the Async Key mechanisms, this will fail if the request takes more than 25 minutes to process, after which the Thomson Reuters firewalls will disconnect the idle request.According to ODATA spec, the wait preference is used to specify upper
bound on the length of time, in seconds, the client is prepared to wait
for the service to process the request synchronously once it has been
received.- If the request is asynchronous and the wait preference is specified,
- API will respond synchronously, if the request take less than the specific length of time to process.
- API will respond asynchronously, if the request take more than the specified length of time to process.
- API will respond synchronously, if the request take less than the specific length of time to process.
- If the request is synchronous, API may interpret the wait as a request to timeout after the specified period of time.
0 - If the request is asynchronous and the wait preference is specified,
-
As an added note to Veerapath's excellent answers, it is a best practice to systematically add the "respond-async" in the Prefer header, because by defining that you want to use async mode there is no uncertainty on the workflow, and your program can work on other things instead of waiting idly for results.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 37 Alpha
- 167 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 705 Datastream
- 1.5K DSS
- 633 Eikon COM
- 5.2K Eikon Data APIs
- 14 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 6 Trading API
- 3K Elektron
- 1.5K EMA
- 259 ETA
- 569 WebSocket API
- 40 FX Venues
- 16 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 4 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 284 Open PermID
- 47 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 24 RDMS
- 2.2K Refinitiv Data Platform
- 879 Refinitiv Data Platform Libraries
- 5 LSEG Due Diligence
- 1 LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 123 Open DACS
- 1.1K RFA
- 108 UPA
- 196 TREP Infrastructure
- 232 TRKD
- 919 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 103 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛