dotnet SSL error #66
Replies: 4 comments 5 replies
-
Hi! Thank you for taking a look at our samples :) Could you provide a little more info on your setup? Are you using the Polyglot extension with VSCode to run the notebook? |
Beta Was this translation helpful? Give feedback.
-
just guessing, this can happen with proxies/MITM tools. Are you using something like Fiddler to inspect the HTTP traffic, e.g. when the kernel talks to the LLM models? SK uses SSL certs validation, so if you're using a local proxy, depending on the tool used, you might have to configure your system to trust the tool/allow MITM. I hope that helps |
Beta Was this translation helpful? Give feedback.
-
It's because You'll need to pass your own |
Beta Was this translation helpful? Give feedback.
-
Initialize your own HttpClient and use that in the Kernel
|
Beta Was this translation helpful? Give feedback.
-
Hi thank you for posting this great repo. I'm trying to run the provided sample/dotnet notebooks locally but I bumped into SSL error. I tried to find out solutions to handle "dotnet SSL error" but no luck so far. Could someone please help? Thanks in advance.
Below is the error message:
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: RevocationStatusUnknown at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception) at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions) at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken) at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem) at System.Threading.Tasks.TaskCompletionSourceWithCancellation
1.WaitWithCancellationAsync(CancellationToken cancellationToken)at System.Net.Http.HttpConnectionPool.HttpConnectionWaiter
1.WaitForConnectionAsync(Boolean async, CancellationToken requestCancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at Microsoft.SemanticKernel.AI.OpenAI.Clients.AzureOpenAIClientAbstract.CacheDeploymentsAsync() at Microsoft.SemanticKernel.AI.OpenAI.Clients.AzureOpenAIClientAbstract.GetDeploymentNameAsync(String modelId) at Microsoft.SemanticKernel.AI.OpenAI.Services.AzureTextEmbeddings.GenerateEmbeddingsAsync(IList
1 data)at Microsoft.SemanticKernel.AI.Embeddings.EmbeddingGeneratorExtensions.GenerateEmbeddingAsync[TValue,TEmbedding](IEmbeddingGenerator
2 generator, TValue value) at Microsoft.SemanticKernel.Memory.SemanticTextMemory.SaveInformationAsync(String collection, String text, String id, String description, CancellationToken cancel) at Submission#6.<<Initialize>>d__0.MoveNext() --- End of stack trace from previous location --- at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.RunSubmissionsAsync[TResult](ImmutableArray
1 precedingExecutors, Func2 currentExecutor, StrongBox
1 exceptionHolderOpt, Func2 catchExceptionOpt, CancellationToken cancellationToken) at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem) at System.Threading.Tasks.TaskCompletionSourceWithCancellation
1.WaitWithCancellationAsync(CancellationToken cancellationToken)at System.Net.Http.HttpConnectionPool.HttpConnectionWaiter
1.WaitForConnectionAsync(Boolean async, CancellationToken requestCancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at Microsoft.SemanticKernel.AI.OpenAI.Clients.AzureOpenAIClientAbstract.CacheDeploymentsAsync() at Microsoft.SemanticKernel.AI.OpenAI.Clients.AzureOpenAIClientAbstract.GetDeploymentNameAsync(String modelId) at Microsoft.SemanticKernel.AI.OpenAI.Services.AzureTextEmbeddings.GenerateEmbeddingsAsync(IList
1 data)at Microsoft.SemanticKernel.AI.Embeddings.EmbeddingGeneratorExtensions.GenerateEmbeddingAsync[TValue,TEmbedding](IEmbeddingGenerator
2 generator, TValue value) at Microsoft.SemanticKernel.Memory.SemanticTextMemory.SaveInformationAsync(String collection, String text, String id, String description, CancellationToken cancel) at Submission#6.<<Initialize>>d__0.MoveNext() --- End of stack trace from previous location --- at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.RunSubmissionsAsync[TResult](ImmutableArray
1 precedingExecutors, Func2 currentExecutor, StrongBox
1 exceptionHolderOpt, Func2 catchExceptionOpt, CancellationToken cancellationToken)
Beta Was this translation helpful? Give feedback.
All reactions