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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
16 3 3 7

C# DSS : An error occurred while sending the request

Hi,

I have downloaded the ".Net SDK Tutorial 1: Connection to the DSS server" from

https://developers.thomsonreuters.com/datascope-select-dss/datascope-select-rest-api/learning?content=5730&type=learning_material_item

When I run restful_api_core_gui_starter.exe, the program interrupts at

string sessionToken = extractionsContext.SessionToken;

and MSVS 2013 shows an exception

I have a DSS account with it I can login to DSS https://hosted.datascope.reuters.com/DataScope/

without any problem.

Does anyone can give me a hint, why it happens ?

Thanks in advance.

Tru

dss-rest-apidatascope-selectdssc#
xapfr.png (20.1 KiB)
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.

Upvotes
Accepted
83.1k 281 53 77

@THUANTRU.HANG

Have you used DSS .NET SDK version 11.3?

You can download it from here.

The code looks like:

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

WebProxy proxy = new WebProxy("http://proxy:port/", true);
proxy.Credentials = new NetworkCredential("proxyuser", "proxypassword");
extractionsContext.Options.Proxy = proxy;
extractionsContext.Options.UseProxy = true;

version.png (25.4 KiB)
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.

Hi Jirapongse,

thank for your hints.

After adding proxy credential it works fine.

Regards,

Tru

Upvotes
426 2 4 4

Hi, @THUANTRU.HANG

Please inspect the detail exception message and post it here. The message should contain the reason why the exception was invoked.

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.

Upvotes
16 3 3 7

Hi Steven,

it seems a problem with the proxy authentication.

The InnerException message shows:

"The remote server returned an error: (407) Proxy Authentication Required."

But how can I fix it ?

I can't find any hint in the documentation.

Thanks for your help

Tru


xpvkm.jpeg (195.4 KiB)
99zqd.jpeg (135.5 KiB)
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.