Skip to content

Chat Copilot: Unable to generate bot response. Details: Error: 500: => System.InvalidOperationException: Sequence contains no elements  #2520

@AnilGayakwad

Description

@AnilGayakwad

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. On semantic-kernel Chat Copilot
  2. Connected to NextJs application Local plugin
  3. Interaction with Chat error's out
  4. Some work with other sample plugins of this repo

Expected behavior
Getting error

Unable to generate bot response. Details: Error: 500: => System.InvalidOperationException: Sequence contains no elements at System.Linq.ThrowHelper.ThrowNoElementsException() at System.Linq.Enumerable.First[TSource](IEnumerable`1 source) at Microsoft.SemanticKernel.Skills.OpenAPI.OpenApi.OpenApiDocumentParser.ExtractRestApiOperations(OpenApiDocument document) at Microsoft.SemanticKernel.Skills.OpenAPI.OpenApi.OpenApiDocumentParser.ParseAsync(Stream stream, Boolean ignoreNonCompliantErrors, CancellationToken cancellationToken) at Microsoft.SemanticKernel.KernelOpenApiExtensions.RegisterOpenApiSkillAsync(IKernel kernel, Stream documentStream, String skillName, OpenApiSkillExecutionParameters executionParameters, CancellationToken cancellationToken) at Microsoft.SemanticKernel.KernelOpenApiExtensions.ImportOpenApiSkillFromUrlAsync(IKernel kernel, String skillName, Uri url, OpenApiSkillExecutionParameters executionParameters, CancellationToken cancellationToken) ...

Screenshots
Error page
image

image

Swagger.Json
image

ai-plugin.json
image

Platform

  • OS: Window
  • IDE: VS Code
  • Language: Javascript, Node Js, NextJs, React

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions