We are using EventContext.Extract to extract data but getting random error and connection breaks with error as "An error occurred while sending the request". Could anyone please help me in setting up proxy.
For a deeper look into our DataScope Select REST API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials
We are using EventContext.Extract to extract data but getting random error and connection breaks with error as "An error occurred while sending the request". Could anyone please help me in setting up proxy.
@tirthesh.khicha, thank you for your participation in the forum. Is the reply below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question. Thanks, AHS
Hi @tirthesh.khicha,
Thank you for your participation in the forum.
Is the reply below satisfactory in resolving your query?
If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.
Otherwise please post again offering further insight into your question.
Thanks,
AHS
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
AHS
You can use this code to set a proxy to ExtractionContexts.
using System.Net; ... ExtractionsContext extractionsContext = new ExtractionsContext(dssUri, dssUserName.Value, dssPassword.Value); WebProxy proxy = new WebProxy("http://<host>:<port>/", true); extractionsContext.Options.Proxy = proxy; extractionsContext.Options.UseProxy = true;