Skip to content

Can't connect to model behind a corporate Proxy (using self-signed certificate) #944

Description

@fedejeanne

The issue

I get this error every once in a while when using the Chat:

The pending stream has been canceled (caused by: self-signed certificate in certificate chain)

I am on Windows and working behind a corporate Proxy that uses a self-signed certificate, which is present in Windows' root trust store.

I already tried using:

  • The new parameter -Declipse.platform.mergeTrust=true (N&N): it didn't work, I got always the aforementioned error
  • The old parameter -Djavax.net.ssl.trustStoreType=Windows-ROOT: it worked for the first 3 prompts and then started failing with the aforementioned error.

Error log

java.util.concurrent.ExecutionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Request copilot/models failed with message: The pending stream has been canceled (caused by: self-signed certificate in certificate chain)
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
	at com.microsoft.copilot.eclipse.ui.chat.services.ModelService.fetchCopilotModels(ModelService.java:196)
	at com.microsoft.copilot.eclipse.ui.chat.services.ModelService$1.run(ModelService.java:178)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Request copilot/models failed with message: The pending stream has been canceled (caused by: self-signed certificate in certificate chain)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)
	at org.eclipse.lsp4e.LanguageServerWrapper.lambda$3(LanguageServerWrapper.java:449)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:185)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:97)
	at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:114)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

My Environment

eclipse.buildId=4.39.0.I20260118-1800
java.version=21.0.3
java.vendor=Eclipse Adoptium
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -data file:/D:/dev/platform-master2/ws/

Copilot Plugin Version

  • 0.14.0.202601160448_nightly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions