cancel
Showing results for 
Search instead for 
Did you mean: 

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

gongw
Associate II

I have re-builded ST BLE MESH and ST BLE Sensor using Android Studio with ST Proxy on Dec 2019.

i have to upgrade Window system on April 14 2020. java may also upgraded.

now I am trying to re-build ST BLE MESH and ST BLE Sensor again. But i encounter java proxy issue, error is as below, who can give me the solution to set ST correct proxy for java ?

Warning: Failed to download any source lists!

Warning: IO exception while downloading manifest:

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

at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2142)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183)

at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:162)

at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openUrl(DownloadCache.java:247)

at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.downloadAndCache(DownloadCache.java:624)

at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openCachedUrl(DownloadCache.java:547)

at com.android.sdklib.repository.legacy.LegacyDownloader.downloadAndStream(LegacyDownloader.java:61)

at com.android.repository.impl.downloader.LocalFileAwareDownloader.downloadAndStream(LocalFileAwareDownloader.java:51)

at com.android.repository.impl.manager.RemoteRepoLoaderImpl.lambda$fetchPackages$0(RemoteRepoLoaderImpl.java:139)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Warning: Still waiting for package manifests to be fetched remotely.

Br,

willee

1 REPLY 1
Saurabh.Rawat
ST Employee

Hello ,

Have you enabled the http proxy support for your id .Please do it with the help of IT support. For building the project behind the proxy you have to add your credentials in the Android Studio>File>(Search http Proxy) and then add your credentials and the proxy server address.

Br,

Saurabh