-
Notifications
You must be signed in to change notification settings - Fork 11
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
Load symbols from cluster fails when behind a TLS intercepting proxy #119
Comments
Could you try downgrading your kusto language server extension to 1.0.34 and see if you get the same issue? There was a version bump in the azure-kusto-data package recently which I'm guessing is the issue. Aside - I'm not maintaining this repo much anymore. If you're interested to look into a fix, contributions are very welcome. There's some dev workflow instructions in kusto-language-server/README.md |
Thanks for the quick reply. Yes downgrading to 1.0.34 did help, interestingly the latest version 1.0.37 fails in a different way, it gets a 400 error with Axios. I don't use Kusto that much, so I was more curious to see this working. If I feel inspired I may have a go at fixing it myself |
…#148) Update language server and language client to 7.* With the update, we get some benefits: - Fix load symbols (fixes bug #119) - Add support for load symbols on public clusters that need MSA account logins (rather than AAD/Entra account login) - Fix load symbols on remote connections which dont support clipboard writes - Update default load symbols params to be the public sample cluster Also: - Add steps for manual testing the 5 basic scenarios in kusto-language-server/README.md (activate extension, format document, load symbols, autocomplete, hover info) - Update `open` and `clipboardy` to the newest non-ESM versions (vs code does NOT support ESM-only modules, ref: microsoft/vscode#130367)
@pearj - I just merged a speculative fix for this in #148 and released it as v2.0.3 https://marketplace.visualstudio.com/items?itemName=rosshamish.kuskus-kusto-language-server If you're still using this, consider updating the extension and letting me know if the fix is good on your end. If you still see issues, let me know and I'll re-open. Thanks. |
Fixed in 2.0.5 |
I tried v3.1.0 but loading symbols from the cluster fails to authenticate. Curiously I can't even find the language server output, maybe it hasn't initialised properly? It does say "Kuskus loaded!" though... It just fails with:
|
Huh, is that after logging in with a regular microsoft account? Does it offer you a login page? |
It doesn't offer a login page, it just dies straight away with and without a tenant id. |
Do you get anything relevant-looking in Output for Extension Host ? Also, is this on Windows, or Mac? Or any sort of browser app (e.g. github codespace) or other VM/virtualized type situation? |
Strange, I can't repro. I added error messages to that notification in #156 , it's releasing with https://github.com/rosshamish/kuskus/actions/runs/8889921549/job/24409058542 as v3.1.1. Could you update and reply back with the error message you get? |
|
Are you able to access that cluster normally from a web browser on that machine? https://dataexplorer.azure.com/clusters/help/databases/SampleLogs |
Yeah that works fine. I am behind a corporate proxy with TLS inspection, so maybe that's interfering somehow. I have tried opening up the extension in development mode, but I haven't had any luck getting a breakpoint to trigger when I run the extension. |
Ah yeah that must be involved. I tried setting some breakpoints now too and am also not having any luck. I do see that source maps are enabled in the tsconfig.json, and i do see them in the out/ dir ... maybe they're not getting picked up properly? |
I managed to get break points working, and I put one at It's getting a bad gateway, but in the browser and via curl it's fine. It's really weird, the response body looks like a proxy error message. I switched to an alternate proxy and gets past the above issue, then it dies a bit later on with a generic network error. After following different breakpoints for far too long, I eventually uncovered the real error:
If only the error handling code in Anyway now it's clear the TLS interception is breaking it, need to figure out how to tell it where the certificate store is... |
So I got it working, you can close this now. I added this to
And closed all the VS Code windows, and it started working. Well it worked a few times and then started dying with empty responses:
I figure it will probably work again at some point, since it worked before, of course it works ok in the browser, and via curl when I run the same request using the http headers grabbed from the debugger. |
When trying to load symbols from a cluster I get the following error:
Any idea what is causing this? I'm running vscode 1.84.2 inside WSL2
The text was updated successfully, but these errors were encountered: