I am using Grpc.Net.Client 2.35.0 and the latest eventstore in an AWS ECS
I have a AWS Lambda developed with C# for netcoreapp3.1 (using also Amazon.Lambda.AspNetCoreServer 5.3.1)
When running “locally” (the logic as a standalone aspnet core app) everything goes well, the grpc client can access event store and write events.
I’m using tls=false in my connection string.
When running in AWS the Lambda fails with the following exception
[Error] Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware: An unhandled exception has occurred while executing the request. An unhandled exception has occurred while executing the request. Grpc.Core.RpcException: Status(StatusCode="DeadlineExceeded", Detail="") at EventStore.Client.Interceptors.TypedExceptionInterceptor.<AsyncClientStreamingCall>b__5_0[TRequest,TResponse](Task`1 t) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at EventStore.Client.EventStoreClient.AppendToStreamInternal(AppendReq header, IEnumerable`1 eventData, EventStoreClientOperationOptions operationOptions, UserCredentials userCredentials, CancellationToken cancellationToken) at Rubiko.EventStore.EventStoreDb.EventStore.Append(String streamName, Int32 aggregateVersion, IEnumerable`1 events, CancellationToken cancellationToken)
It seems something internal in the grpc client but I can’t figure out what or why running it from a AWS lambda makes any difference.
Happy to share more details if needed.