Can't connect to Kusto
See original GitHub issueAll good yesterday. Today I open an notebook and can’t connect to Kusto. Tried this on 2 different machines. Wondering what changed. Any pointers?
Error: System.InvalidOperationException: MicrosoftKustoServiceLayer failed to start properly. Exit code: 0. ---> StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete. at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken) at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList
1 arguments, IReadOnlyList1 positionalArgumentDeclaredTypes, IReadOnlyDictionary2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.DotNet.Interactive.SqlServer.ToolsServiceClient.ConnectAsync(ConnectParams connectParams) --- End of inner exception stack trace --- at Microsoft.DotNet.Interactive.SqlServer.ToolsServiceClient.ConnectAsync(ConnectParams connectParams) at Microsoft.DotNet.Interactive.Kql.ToolsServiceClientExtensions.ConnectAsync(ToolsServiceClient serviceClient, Uri ownerUri, KqlConnectionDetails kqlDetails) at Microsoft.DotNet.Interactive.Kql.MsKqlKernel.ConnectAsync() at Microsoft.DotNet.Interactive.Kql.KqlKernelConnector.CreateKernelAsync(String kernelName) at Microsoft.DotNet.Interactive.Kql.ConnectKqlCommand.ConnectKernelAsync(KernelInvocationContext context, InvocationContext commandLineContext) at Microsoft.DotNet.Interactive.CompositeKernel.<>c__DisplayClass26_0.<<AddKernelConnector>b__0>d.MoveNext() in D:\a\_work\1\s\src\Microsoft.DotNet.Interactive\CompositeKernel.cs:line 329
Issue Analytics
- State:
- Created 8 months ago
- Comments:13 (8 by maintainers)
Top GitHub Comments
In the next few days we’ll publish a new version of the VS Code extension and packages that will have this fix.
Looks like I didn’t add a minimum version check when bumping the Kusto tool version, so if it was already previously installed it won’t be updated. We added some additional launch arguments for that Kusto tool in the latest update of the Kusto kernel’s nuget package, but the 1.0.0 version of the tool doesn’t recognize those args and exits immediately with a help message that gets swallowed by the RPC stream causing that JSON RPC error above.
The workaround for this issue while we wait to push up a new nuget package is to manually update tool with the following commands: dotnet tool uninstall -g microsoft.sqlserver.kustoservicelayer.tool dotnet tool install -g microsoft.sqlserver.kustoservicelayer.tool --version 1.1.0