Semantic Kernel. 'The SSL connection could not be established, see inner exception.' #10029
-
I am trying Semantic Kernel with OpenAI in a Muai application. I am able to successfully get a simple prompt response using windows. However running under Android (emulator and local device) I get the error Microsoft.SemanticKernel.HttpOperationException: The SSL connection could not be established, see inner exception. The following is the relevent code block, complete n Entry. Output goes to Label (Answer). Error is raised at line: var response = await kernel.InvokePromptAsync(((Entry)sender).Text); As mentioned above code runs OK on Windows Machine but not on Android.
private async void Question_Completed(object sender, EventArgs e)
} {Microsoft.SemanticKernel.HttpOperationException: The SSL connection could not be established, see inner exception. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
This might be related to #6993 @RogerBarret0 |
Beta Was this translation helpful? Give feedback.
-
I've also shared a quick workaround for this here: #10082 (comment) |
Beta Was this translation helpful? Give feedback.
-
Thanks @arafattehsin , we have reopened the issue and Roger is looking into the details you provided in #10082 (comment) |
Beta Was this translation helpful? Give feedback.
-
I am able to resolve this issue by using Microsoft.Extensions.AI rather than SemanticKernel, as follows: public List<Microsoft.Extensions.AI.ChatMessage> chatMessages = new(); chatMessages.Add(new ChatMessage(ChatRole.User, request)); Using Microsoft.Extensions.AI I am able to: All of which compiles and runs on Windows and Android platforms (not tested IOS). |
Beta Was this translation helpful? Give feedback.
Thanks @arafattehsin , we have reopened the issue and Roger is looking into the details you provided in #10082 (comment)