Skip to content
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

[Bug] The circuit is now open and is not allowing calls error #918

Open
roberAlb opened this issue Nov 28, 2024 · 1 comment
Open

[Bug] The circuit is now open and is not allowing calls error #918

roberAlb opened this issue Nov 28, 2024 · 1 comment
Labels
bug Something isn't working triage

Comments

@roberAlb
Copy link

Context / Scenario

We are importing some documents from an Azure Function.

What happened?

We are getting this error sometimes for some of them

The circuit is now open and is not allowing calls

Reviewing code it looks like it's from this piece of code from KM

IList<ReadOnlyMemory>? embeddings = await generator
.GenerateEmbeddingsAsync([text], null, cancellationToken)
.ConfigureAwait(false);

Importance

edge case

Platform, Language, Versions

Windows, C#, last version of KM

Relevant log output

Polly.CircuitBreaker.BrokenCircuitException:
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Microsoft.Extensions.Http.Resilience.Internal.ResilienceHandler+<SendAsync>d__2.MoveNext (Microsoft.Extensions.Http.Resilience, Version=8.0.0.0, Culture=neutral,
@roberAlb roberAlb added bug Something isn't working triage labels Nov 28, 2024
@dluc
Copy link
Collaborator

dluc commented Dec 6, 2024

I can't say we've tested KM on functions. It's a complex environment in terms of resources and timing.
There might be a limit on the number of tcp/http requests affecting the internal retry logic used by Polly/KM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants