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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 1 1 2

Getting HttpResponseException

Getting HttpResponseException while getting token with DSS2TokenProxyAuth:

org.apache.http.client.HttpResponseException: Proxy Authentication Required at org.apache.http.impl.client.AbstractResponseHandler.handleResponse(AbstractResponseHandler.java:70) at org.apache.http.impl.client.BasicResponseHandler.handleResponse(BasicResponseHandler.java:66) at org.apache.http.impl.client.BasicResponseHandler.handleResponse(BasicResponseHandler.java:52) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:223) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:140) at com.thomsonreuters.dss.api.example.DSS2TokenProxyAuth.getSessionTokenProxyAuth(DSS2TokenProxyAuth.java:105) at com.thomsonreuters.dss.api.example.DSS2TokenProxyAuth.main(DSS2TokenProxyAuth.java:55)


Can someone please suggest on this.

dss-rest-apidatascope-selectdsshttp
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.

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

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
13.7k 26 8 12

@sridhardingari,

All we can conclude from the response exception is that the proxy you are using requires authentication, and that the authentication failed. You are using one of our samples that is indeed meant for use with a proxy that requires authentication.

A few paths to explore to solve the issue:

  • First of all , when running that sample, did you enter all the required parameters in the following order: DSS Username, DSS Password, Proxy Hostname, Proxy Port, Proxy Username, Proxy Password ?
  • Are you sure your proxy username and password are valid ?

After these (fairly obvious) suggestions, I'd like to add that this sample is intended for a proxy that only requires a username and password. Some proxies use more sophisticated authentications mechanisms that are beyond the simple capabilities of this sample. If that is the case you will have to adapt the sample to your proxy.

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.