2018.1 getting connection failed (status: 407) on mac when doing "Check for Updates"

Answered

I just upgraded to 2018.1 on my Mac and Check for Updates is giving "Connection failed (Status: 407). Please check network connection and try again." I haven't changed any network settings (just upgraded from previous working 2017.3). The proxy check in preferences works and is able to get to outside address. I've tried removing all IntelliJ folders in the Library folder and reinstalling and it is still giving the same issue.

0
18 comments

Hi.

HTTP 407 means proxy authentication is required. Please double check proxy setup.

0
Avatar
Permanently deleted user

The "Check Connection" button in IntelliJ Preferences gave me "Connection Successful".

0

please provide idea.log (Help | Show log...) after reproducing the problem.

0
Avatar
Permanently deleted user

Here is the area around the check update log. URL was replaced by xxxxxx in case there was any sensitive info... Hitting the URL itself in browser does pull down an XML file.

com.intellij.util.io.HttpRequests$HttpStatusException: Status: 407. Status=407, Url=xxxxxx
at com.intellij.util.io.HttpRequests.openConnection(HttpRequests.java:527)
at com.intellij.util.io.HttpRequests.access$300(HttpRequests.java:63)
at com.intellij.util.io.HttpRequests$RequestImpl.getConnection(HttpRequests.java:292)
at com.intellij.util.io.HttpRequests$RequestImpl.getInputStream(HttpRequests.java:301)
at com.intellij.util.io.HttpRequests$RequestImpl.getReader(HttpRequests.java:319)
at com.intellij.util.io.HttpRequests$RequestImpl.getReader(HttpRequests.java:312)
at com.intellij.openapi.updateSettings.impl.UpdateChecker$checkPlatformUpdate$1.process(UpdateChecker.kt:175)
at com.intellij.openapi.updateSettings.impl.UpdateChecker$checkPlatformUpdate$1.process(UpdateChecker.kt:53)
at com.intellij.util.io.HttpRequests.lambda$doProcess$0(HttpRequests.java:418)
at com.intellij.util.net.ssl.CertificateManager.runWithUntrustedCertificateStrategy(CertificateManager.java:335)
at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:418)
at com.intellij.util.io.HttpRequests.process(HttpRequests.java:398)
at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:63)
at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:266)
at com.intellij.openapi.updateSettings.impl.UpdateChecker.checkPlatformUpdate(UpdateChecker.kt:173)
at com.intellij.openapi.updateSettings.impl.UpdateChecker.doUpdateAndShowResult(UpdateChecker.kt:119)
at com.intellij.openapi.updateSettings.impl.UpdateChecker.access$doUpdateAndShowResult(UpdateChecker.kt:53)
at com.intellij.openapi.updateSettings.impl.UpdateChecker$updateAndShowResult$2.run(UpdateChecker.kt:96)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:750)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:395)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:305)
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:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2018-03-28 11:50:23,076 [ 19499] INFO - ateSettings.impl.UpdateChecker - Connection failed (Status: 407). Please check network connection and try again.

 

 

There was one other line that complains about how proxy setting was set/passed (note part of the message was replaced with xxxxxx due to sensitivity of text shown):

2018-03-28 11:50:08,574 [ 4997] INFO - ntellij.util.proxy.CommonProxy - <html>xxxxxx<br>This may lead to incorrect behaviour. Proxy should be set in Settings | HTTP Proxy<br>This JVM property is old and its usage is not recommended by Oracle.<br>(Note: It could have been assigned by some code dynamically.)

0

Could you please provide screenshot of Settings | HTTP Proxy

0
Avatar
Permanently deleted user

 

 



0

Please add the following in Help | Debug Log Settings:

com.intellij.util.io.HttpRequests
#com.intellij.util.io.HttpRequests
com.intellij.util.proxy.CommonProxy
#com.intellij.util.proxy.CommonProxy

Reproduce the problem and share the log privately with us: https://intellij-support.jetbrains.com/hc/articles/206869619 or report at https://youtrack.jetbrains.com/issues/IDEA and attach the file there.

See if disabling the proxy in the browser helps.

 

0

I'm getting similar on my machine due to a draconian proxy that wants to auth everything all the time. Any help for this? Note that I can't even get Toolbox to function at all. IntelliJ does for the most part but I can't get any plugins or updates. Note that I do get the list but the download fails immediately every time with a 407. 

0
Avatar
Permanently deleted user

@Serge Unchecking the use secure connection under System Settings worked for me.

 

Thank you!

0

Disabling that checkbox eliminated the problem with downloading plugins but the Atlassian plugin still doesn't itself work at all once installed. 

0

Installed certs.Now getting:

com.atlassian.theplugin.commons.remoteapi.RemoteApiException: (404)404
at com.atlassian.connector.commons.jira.soap.JIRASoapSessionImpl.login(JIRASoapSessionImpl.java:193)
at com.atlassian.connector.commons.jira.JIRASoapAndXmlServerFacade2Impl.testServerConnection(JIRASoapAndXmlServerFacade2Impl.java:154)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.atlassian.connector.commons.jira.JIRAServerFacade2Impl$1.invoke(JIRAServerFacade2Impl.java:93)
at com.sun.proxy.$Proxy47.testServerConnection(Unknown Source)
at com.atlassian.connector.commons.jira.JIRAServerFacade2Impl.testServerConnection(JIRAServerFacade2Impl.java:268)
at com.atlassian.theplugin.commons.jira.IntelliJJiraServerFacade.testServerConnection(IntelliJJiraServerFacade.java:473)
at com.atlassian.theplugin.idea.config.serverconfig.ProductConnector.connect(ProductConnector.java:35)
at com.atlassian.theplugin.ConnectionWrapper.run(ConnectionWrapper.java:63)

0

This exception is from the third-party Atlassian plug-in. Note that Atalssian has dropped support for their plug-ins long time ago: https://developer.atlassian.com/blog/2015/06/discontinuing-ide-connectors-support/ . Disabling the plug-in may be the best option.

0

Yup. I figured that out but the fix applied solved other problems. :-)

0

In my case update to IntelliJ IDEA version 2021.2.3 caused

"Connection failed (Request failed with status code 407). Please check network connection and try again."

when I was trying to update (I use proxy).

Disabling "Grazie" plugin helped:

Link to post:
Proxy authentication does not work after update to IntelliJ IDEA 2021.2.1 : IDEA-276949 (jetbrains.com)

0

Hi Jurand Niemczycki Most likely you were affected by https://youtrack.jetbrains.com/issue/IDEA-276949 . The fix will be included in the next release.

Sorry for the inconvenience.

0

Yes :)
I just wanted to leave the solution for this problem on a page that is being found by Google as a first search result, when you search for "Connection failed (Request failed with status code 407). Please check network connection and try again." just to help others ;)

1

Please sign in to leave a comment.