Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • DSS /

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

avatar image
Question by jayzoww · Jun 21, 2017 at 11:53 AM · dss-rest-apidssdatascope-selectrest-apiauthenticationconnectionmodel-view-controller

connection forcibly closed by remote host when authenticating

I am attempting to authenticate with the REST API, but sending the request through a MVC Web application always provides the error message "An existing connection was forcibly closed by the remote host". It appears to be a request timeout, as the error always occurs after 1 min of attempting to connect.

This only occurs when I am attempting to connect through the MVC web application, while a .NET Console program allows a connection and returns a session token.

The block of code used is the same in both the web application and the console program, which is taken from the tutorials.

Uri dssUri = new Uri("https://hosted.datascopeapi.reuters.com/RestApi/v1/");
string dssUserName = "<username>";
string dssUserPassword = "<password>";

ExtractionsContext extractionsContext = new ExtractionsContext(dssUri, dssUserName, dssUserPassword);

string sessionToken = extractionsContext.SessionToken;
Console.WriteLine("Returned session token: " + sessionToken);
return sessionToken;

EDIT:

The problem was fixed by adding a default proxy to the Web.config file in the webapp.

  <system.net>  
	<defaultProxyenabled="true"useDefaultCredentials="true"></defaultProxy>
  </system.net>

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.

2 Replies

  • Sort: 
avatar image
Best Answer
Answer by jayzoww · Jun 22, 2017 at 09:03 AM

The problem actually turned out to be the MVC app not being able to access external URL's, which was solved by adding the following to the Web.config

  <system.net>
    <defaultProxyenabled="true"useDefaultCredentials="true"></defaultProxy>
  </system.net>
Comment

People who like this

0 Show 0 · 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
REFINITIV
Answer by Jirapongse · Jun 22, 2017 at 02:55 AM

My MVC web application (VS2013) works fine with DSS REST API. It tested it with IIS express and Azure. It can authenticate and get the sessionToken properly.

The problem could be from the network between the web server and the DSS server.

Are you using IIS express, IIS, or azure? Can you share the project files?

Comment

People who like this

0 Show 0 · 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.

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 >
10 People are following this question.

Related Questions

How do i get access to rest api? I recently created account on reuters site but i can not access the page https://hosted.datascopeapi.reuters.com/RestApi.Help/User/Login?returnUrl=%2fRestApi.Help%2fHome%2fExtractionLimits

DSS REST API got connection reset error

Search with DSS REST API for instruments available from a specific source

Historical coupon dates for a Bond in REST API

How to use CorporateActions extractions

  • 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