-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird behaviour / not working with a proxy #97
Comments
Steps to reproduce the issue :
Visual Studio Code error message window appears with text: “Request failed with status code 400” |
Thank you for reporting this issue @PiyushJonnie! |
@eyalbe4 Yes, here JFrog environment is only accessible through an HTTP proxy. Proxy settings are configured as mentioned in the link. If the proxy is disabled, the response changes to: “Could not connect to Xray: Error connect ETIMEDOUT :443” Other extensions are working correctly and are able to use the proxy as expected. |
I am seeing the similar issue, except I can make it all the way through the configuration prompts including my Artifactory credentials, and then it's a few seconds until the error pops up. I tried setting VS Code version
Extension version
|
And just to confirm the negative, I am able to connect the extension to this same [public-facing] Artifactory server when off the corporate network and not using a proxy. |
Additionally. Both |
Our apologies for the inconvenience caused by this. |
Describe the bug
We have an X-Ray server only reachable over a proxy server; lets say X-Ray server is https://xray and proxy is http://proxy:6789; note that proxy is http and X-Ray is https. I set the proxy in vscode and this seems to be working perfectly fine, i.e. I can install plugins, update vscode and wireshark for example logs from my ip to proxy ip: CONNECT update.code.visualstudio.com:443 HTTP/1.1 which succeeds with "Connection Established" etc.
But after entering the X-Ray configuration, the status bar just says "Checking connection with Xray server..." for about maybe 10 minutes and then an alert window pops up saying "Socket hang up".
Wireshark logs something weird (at least in my opinion): There is no CONNECT to the proxy but an http POST to the proxy with request url https://xray/api/v1/summary/component. In my opinion, wireshark should not see this POST because the connection should be ssl/tls encrypted but it seems like the plugin never tries to establish an ssl connection.
To Reproduce
Try to configure an https xray over an http proxy
Expected behavior
A successful connection to xray
Versions
The text was updated successfully, but these errors were encountered: