Long Running Requests Return no Progress Update - DSS C# SDK
I have a question around the extractwithnotes async call. When running short requests I have no issue seeing the progress of the job on the callback method however when there is a larger request there is no progress or status update (as far as I can tell). The application awaits the aysnc result but it never actually arrives, even if left overnight.
Is there some step I am missing when handling the long running requests? based on the examples I am seemingly handling this in the right manner but something isn't quite right.
Snap shot of calling code:
var progress = new Progress<HttpAsyncStatus>(Handler);
var job = await ExtractionsContext.ExtractWithNotesAsync(extractionRequest, new CancellationToken(false), progress);
Any advice would be appreciated as the examples aren't overly clear on this matter.
Answers
-
Hi @alex.smith,
The server returns a HTTP-202 Accepted response for async calls. Upon investigating the HTTP response, I see that the progress header is not populated. It might be a bug or an incomplete feature in the DSS service. I would raise a service ticket with product, on your behalf.
HTTP/1.1 202 Accepted
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Location: https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractRawResult(ExtractionId='0x07969d71f57cba22')
Server: Microsoft-IIS/10.0
Status: InProgress
Progress:
X-Request-Execution-Correlation-Id: CiD/9011672/AAAAAA.07969c75cf3cba20/RA
X-App-Id: Custom.RestApi
X-App-Version: 14.5.72.64
Date: Thu, 10 Jun 2021 13:11:33 GMT
Content-Length: 00 -
Hi @alex.smith,
I have raised a ticket #09972123 for you. You should directly receive the updates from the DSS support team in email.
1 -
If i'm using the C# SDK does the 202 get returned in some way that I can interrogate it? Also aside from the progress feature being empty, when waiting for a long running request I get no timeout or error even if the request has been running for more than 3 hours. Does the session on the DSS side timeout and not return anything? Just trying to work out a way of handling the long running requests thanks
0 -
No. 202 is handled by the SDK and not visible to application. The session does not get timed out - you just have to wait longer. You can try to use a intercepting-proxy like Fiddler to capture the HTTP interaction between the server and SDK.
0 -
Hello @alex.smith
Could you please let us know if you got the answer from the DSS support team via ticket #09972123?
If so, could you please share the answer in this post as it could be beneficial to other users?
If not, you can contact the DSS support team via ticket #09972123 email thread.
0 -
Hello @alex.smith ,
Looks like the support case was closed for the lack of input.
I am hoping that the question was answered outside of the developer forums.
If this is the case, we would appreciate a quick summary of the resolution, as it would help the next developers with the same or similar question?
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛