kernel-memory icon indicating copy to clipboard operation
kernel-memory copied to clipboard

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

Open roberAlb opened this issue 1 year ago • 1 comments

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 avatar Nov 28 '24 14:11 roberAlb