Skip to content

STS4 in VSCode not Accepting Proxy Settings #498

Closed

Description

@rkralston

Latest STS4 extension in latest VSCode does not use any proxy settings. I have proxy configured in VSCode with the overrie extensions set. I also have the http(s)_proxy environment vars set. Maven can download from corp repos, but STS fails.

I am on Windows 10 1809

I am using VPN to connect to corp network. No issues with any other system using proxy.

Activity

  1. BoykoAlex commented on Jul 1, 2020

    @BoykoAlex
    Contributor

    Hmm... what exactly fails in STS4? Is this the Spring Boot extension? How exactly does it fail? Don't think it downloads anything...

  2. rkralston commented on Jul 6, 2020

    @rkralston
    Author

    Before it runs, it tries to build the package. When it does, it can't download anything. When I run Maven manually at the command prompt, it builds just fine.

  3. martinlippert commented on Jul 6, 2020

    @martinlippert
    Member

    @rkralston If I understand the issue correctly, the Java tooling in VSCode doesn't do the right job when running the maven build under the hood to download the dependences of the project. Is that correct? If so, I would recommend to ask that question or file that issue with the Java tooling for VSCode.

    Here is also a specific section about the Java tooling and proxy configs:
    https://code.visualstudio.com/docs/java/java-faq#_how-can-i-use-it-behind-a-corporate-proxy

    And here is the documentation from the Java support project itself:
    https://github.com/redhat-developer/vscode-java/wiki/Using-a-Proxy

    If that doesn't help and you are facing an additional issue around proxies, I would recommend to file an issue there.

    Hope this helps.

  4. martinlippert commented on Feb 13, 2021

    @martinlippert
    Member

    Closing this one due to no further feedback arrived, maybe the previous comment helped. If this is still an issue, please comment and we can re-open the issue.

  5. parenko commented on Aug 22, 2023

    @parenko

    I am getting following Exception that https://api.spring.io/projects could not be reached.
    Direct connection is forbidden on my corporate machine.
    Eclipse is configured to use Proxy, but I gues STS4 does not use thise settings. (Thus my comment here)

    15:44:24.843 [Project-Reconciler-1] ERROR o.s.i.v.b.v.g.ProjectVersionDiagnosticProvider - 
    org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://api.spring.io/projects": Connection timed out: connect
    	at org.springframework.web.client.RestTemplate.createResourceAccessException(RestTemplate.java:888)
    	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:868)
    	at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:764)
    	at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:646)
    	at org.springframework.ide.vscode.boot.validation.generations.SpringProjectsClient.get(SpringProjectsClient.java:74)
    	at org.springframework.ide.vscode.boot.validation.generations.SpringProjectsClient.fromEmbedded(SpringProjectsClient.java:53)
    	at org.springframework.ide.vscode.boot.validation.generations.SpringProjectsClient.getSpringProjects(SpringProjectsClient.java:40)
    	at org.springframework.ide.vscode.boot.validation.generations.SpringIoProjectsProvider.cache(SpringIoProjectsProvider.java:60)
    	at org.springframework.ide.vscode.boot.validation.generations.SpringIoProjectsProvider.getProject(SpringIoProjectsProvider.java:54)
    	at org.springframework.ide.vscode.boot.validation.generations.GenerationsValidator.validate(GenerationsValidator.java:57)
    	at org.springframework.ide.vscode.boot.validation.generations.ProjectVersionDiagnosticProvider.getDiagnostics(ProjectVersionDiagnosticProvider.java:56)
    	at org.springframework.ide.vscode.boot.validation.BootVersionValidationEngine.reconcile(BootVersionValidationEngine.java:50)
    	at org.springframework.ide.vscode.boot.common.ProjectReconcileScheduler.lambda$scheduleValidation$0(ProjectReconcileScheduler.java:85)
    	at java.base/java.util.Optional.ifPresent(Optional.java:178)
    	at org.springframework.ide.vscode.boot.common.ProjectReconcileScheduler.lambda$scheduleValidation$1(ProjectReconcileScheduler.java:83)
    	at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onNext(MonoPeekTerminal.java:171)
    	at reactor.core.publisher.FluxOnAssembly$OnAssemblySubscriber.onNext(FluxOnAssembly.java:539)
    	at reactor.core.publisher.MonoPublishOn$PublishOnSubscriber.run(MonoPublishOn.java:181)
    	at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68)
    	at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28)
    	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
    	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    	at java.base/java.lang.Thread.run(Thread.java:833)
    Caused by: java.net.ConnectException: Connection timed out: connect
    	at java.base/sun.nio.ch.Net.connect0(Native Method)
    	at java.base/sun.nio.ch.Net.connect(Net.java:579)
    	at java.base/sun.nio.ch.Net.connect(Net.java:568)
    	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:593)
    	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
    	at java.base/java.net.Socket.connect(Socket.java:633)
    	at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304)
    	at java.base/sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:174)
    	at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183)
    	at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:533)
    	at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:638)
    	at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:266)
    	at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380)
    	at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:193)
    	at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1242)
    	at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128)
    	at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179)
    	at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:142)
    	at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:75)
    	at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
    	at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:66)
    	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:862)
    	... 23 common frames omitted
    
  6. BoykoAlex commented on Aug 22, 2023

    @BoykoAlex
    Contributor

    Hmm... looks like we'd need to incorporate these settings into Boot language server settings. Do you mind moving this into a separate git issue?

  7. parenko commented on Aug 23, 2023

    @parenko

    I've created the issue #1101 regarding my comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions