Wikidata-Toolkit icon indicating copy to clipboard operation
Wikidata-Toolkit copied to clipboard

HTTPS Proxy error

Open spaniard81 opened this issue 7 years ago • 0 comments

Hi,

I am testing the sample example FetchOnlineDataExample but getting a Java related error:

Could not retrive data: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required"

Thinking that this issue seems to be related to Java's proxy settings I have tried my bit and now wanted to seek a confirmation whether the logic of establishing a HTTPS connection and authentication will work, given I pass the following JVM Arguments during runtime:

-Dhttps.proxyHost=xxx.xxx.xx.xx -Dhttps.proxyPort=xxxx -Dhttps.proxyUser=UserId -Dhttps.proxyPassword=Password -Djdk.http.auth.tunneling.disabledSchemes=""

The last Parameter is something I picked from various forums where it is argued that Java 8 onwards Basic authentication scheme has been deactivated. (http://www.oracle.com/technetwork/java/javase/8u111-relnotes-3124969.html )

****************Error logs **************************************************** *** Wikidata Toolkit: FetchOnlineDataExample


*** This program fetches individual data using the wikidata.org API. *** It does not download any dump files.


*** Fetching data for one entity: 2018-09-04 18:23:04 ERROR - Could not retrive data: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required" Exception in thread "main" java.lang.NullPointerException at examples.FetchOnlineDataExample.main(FetchOnlineDataExample.java:100)

spaniard81 avatar Sep 04 '18 16:09 spaniard81