3.2.1: Unable to tunnel through proxy


(Juergen Zimmermann) #1

I want to upgrade from 3.1 to 3.2.1, and deleted the gradle subdirectory, gradlew, gradlew.bat. Afterwards I invoked “gradle wrapper”, and finally “gradlew clean”. Now I get the following error message (the proxy settings are available in gradle.properties). Any hint is appreciated.

> gradlew clean
Downloading https://services.gradle.org/distributions/gradle-3.2.1-bin.zip

Exception in thread "main" java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.0 407 Proxy Authentication Required"
        at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2124)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
        at org.gradle.wrapper.Download.downloadInternal(Download.java:60)
        at org.gradle.wrapper.Download.download(Download.java:45)
        at org.gradle.wrapper.Install$1.call(Install.java:62)
        at org.gradle.wrapper.Install$1.call(Install.java:48)
        at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)
        at org.gradle.wrapper.Install.createDist(Install.java:48)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

(Luke Daley) #2

Hi @Juergen_Zimmermann,

Nothing has explicitly changed in this area between these releases. Is it possible that your network environment changed since you downloaded 3.1?

That 407 response will be coming from your internal network proxy, before the request makes it to our servers. It seems like your environment is not configured to auth to the proxy. Documentation on how to configure auth is here: https://docs.gradle.org/current/userguide/build_environment.html#sec:accessing_the_web_via_a_proxy