I see an internal ticket was created(00487754) and this topic was closed. We were getting this in our prod instance yesterday. Nest 6.6 getting InvalidProgramException sometimes
Envionrment:
AWS ECS Fargate
Docker container
linux - debian(mcr.microsoft.com/dotnet/core/aspnet:3.1)
.Net Core 3.1
NEST 6.8.3
Stack trace:
Message Common Language Runtime detected an invalid program.stackTrace at [Elasticsearch.Net](http://elasticsearch.net/).Transport `1.RequestAsync[TResponse](HttpMethod method, String path, CancellationToken cancellationToken, PostData data, IRequestParameters requestParameters) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at [Elasticsearch.Net](http://elasticsearch.net/).Transport` 1.RequestAsync[TResponse](HttpMethod method, String path, CancellationToken cancellationToken, PostData data, IRequestParameters requestParameters)
at [Elasticsearch.Net](http://elasticsearch.net/).ElasticLowLevelClient.DoRequestAsync[TResponse](HttpMethod method, String path, CancellationToken cancellationToken, PostData data, IRequestParameters requestParameters)
at [Elasticsearch.Net](http://elasticsearch.net/).ElasticLowLevelClient.SearchAsync[TResponse](String index, String type, PostData body, SearchRequestParameters requestParameters, CancellationToken ctx)
at Nest.LowLevelDispatch.SearchDispatchAsync[TResponse](IRequest `1 p, SerializableData` 1 body, CancellationToken ct)
at Nest.ElasticClient.b__563_0[T,TResult](ISearchRequest p, SerializableData `1 d, CancellationToken c) at Nest.ElasticClient.Nest.IHighLevelToLowLevelDispatcher.DispatchAsync[TRequest,TQueryString,TResponse,TResponseInterface](TRequest request, CancellationToken cancellationToken, Func` 3 responseGenerator, Func`4 dispatch)
at App.Core.Search.SearchRepository.SearchAsync(BenchmarkSearchQuery search, CancellationToken cancellationToken) in /src/App/Core/Search/SearchRepository.cs:line 39
at App.Controllers.SearchController.SearchAsync(BenchmarkSearchRequest request, CancellationToken cancellationToken) in /src/App/Controllers/SearchController.cs:line 77
at lambda_method(Closure , Object )
at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult()
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Logged|12_1(ControllerActionInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)