Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Datastream /
avatar image
Question by ofr · Feb 12, 2021 at 10:18 AM · dss-rest-apidatastream-apidsws-apic#.net

Status code 0 instead of 202

Hi,
Brand new to Refinitiv!
Short version background: I am not allowed to add the DSS dll library to my project (see why in longer version below), so I will have to code everything using Microsoft tools only.

I have used the old-fashioned Microsoft tools (System.Net.WebRequest, System.Net.WebResponse and System.IO.Steam) to create a console app which can request data from Refinitiv. When requesting few data, it works as expected. But when requesting more data, I do not get my data.I know that I should get a status 200 + data (which I do) when data is returned before a timeout, but I should also get a status 202 and a header with a "location" where I can re-request data, until data is available, if data is not available "instantly". Unfortunately when I get a timeout I get a Status 0 and the header is empty.

So how do I proceed from here?

Longer version: My app should be a part of a SSIS-package. And in SSIS you cannot reference external dll's (unless you can add the dll to the GAC, which is not an option in my case). This is why I am stuck with MS dll's only.

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Gurpreet · Feb 12, 2021 at 02:11 PM

Hello @ofr,

HTTP protocol does not have a definition for code 0. This means, that status (and empty header) is being returned from your local libraries and not the DSS server. This is probably happening because of timeout. You will have to play around with the timeout settings, and maybe setup some debugging-proxy to capture the raw interactions between DSS servers and your application, to see whats happening.

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
ofr · Feb 15, 2021 at 09:00 AM 0
Share

Thank you Gurpreet! Feel like Homer Simpson in a "dough" moment! I thought I forced the server timeout to be 5 seconds to provoke a timeout. But setting my timeout to 5 seconds forced the client to stop - forcing the code to be 0 (or rather - not waiting for a response from the server!)

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
9 People are following this question.

Related Questions

add a service reference for Datastream Web Service

Programmatically make snapshot request for SPX Index and US Treasury Bill rate

C# API equivalent of DSGRID "Latest Value" function

Can you easily convert a DSDataResponse object to a datatable in C#

Ho to get Datastream .net DSClient.DataService.GetData to use https instead of http

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges