camel-tooling / camel-lsp-client-vscode

This is a client implementation of the Apache Camel Language Server Protocol for Visual Studio Code
Apache License 2.0
26 stars 13 forks source link

Proxy issue with content-length? #1922

Open lfvdaniel opened 2 months ago

lfvdaniel commented 2 months ago

Issue information

I'm using this extension in a environment that is behind a corporate proxy and I "always" get the error attached in the screenshot. Also check the error log below from output.

Am i missing some config or do anyone know why this is happening?

Environment

Description of wrong behavior

The language support and auto completion doesn't work.

[Error - 10:48:18 AM] Stopping server failed
Error: Stopping the server timed out
    at /home/u30485/.vscode/extensions/redhat.vscode-apache-camel-1.4.0/node_modules/vscode-languageclient/lib/common/client.js:983:23
[Error - 10:48:18 AM] Stopping server failed
Error: Stopping the server timed out
    at /home/u30485/.vscode/extensions/redhat.vscode-apache-camel-1.4.0/node_modules/vscode-languageclient/lib/common/client.js:983:23
[Error - 10:48:20 AM] Server process exited with signal SIGKILL.

Exact steps to reproduce issue

  1. Open a camel project and wait a ~1 minute then the error appears.

Expected behaviour

Language Support for Apache Camel to work behind a proxy.

Screenshot

Screenshot from 2024-09-10 10-48-35

BR /Daniel

apupier commented 2 months ago

Do you have more information how the proxy is configured on the machine?

Can you have a look to the /tmp/log-camel-lsp.log and check if there is a stacktrace with more specific details?

Maybe need to configure Java with the proxy globally set the environment variable JAVA_TOOLS_OPTIONS https://docs.oracle.com/javase/8/docs/platform/jvmti/jvmti.html#tooloptions with the proxy configuration https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html