EventStoreDB RetriesLimitReachedException

Hi.
I have implemented a service to store events in the EventStoreDB. I have just used the code in the documentation based on the .NET platform. But I always receive the below error when sending a request to store the events.
Docker compose file:
version: ‘3.7’

services:

eventstore:
container_name: esdb-docs
image: eventstore/eventstore:release-5.0.10
ports:
- ‘2113:2113’
- ‘1113:1113’
environment:
EVENTSTORE_EXT_HTTP_PORT: 2113
EVENTSTORE_EXT_TCP_PORT: 1113
EVENTSTORE_RUN_PROJECTIONS: all
EVENTSTORE_START_STANDARD_PROJECTIONS: ‘true’
PROJECTION_THREADS: 8

Could anyone provide me with some information about the error or handle it?

EventStore.ClientAPI.Exceptions.RetriesLimitReachedException: Item Operation AppendToStreamOperation (de149589-9539-4e80-9a4f-a0c1bbd41fc4): Stream: poststream, ExpectedVersion: -2, retry count: 10, created: 13:06:47.054, last updated: 13:07:29.156 reached retries limit : 10
at EventStore.ClientAPI.Internal.EventStoreNodeConnection.AppendToStreamAsync(String stream, Int64 expectedVersion, IEnumerable`1 events, UserCredentials userCredentials)
at EventStoreService.AppendEventAsync(Object eventData) in H:\Programming_Courses\MediumArticles\Event-Sourcing_Event-Driven-Architecture\EventSourcingExample\Post.Service\Service\EventStores\EventStoreService.cs:line 32
at Post.Service.CQRS.Command.Post.Create.CreatePostInformationCommandHandler.Handle(CreatePostInformationCommandRecord request, CancellationToken cancellationToken) in H:\Programming_Courses\MediumArticles\Event-Sourcing_Event-Driven-Architecture\EventSourcingExample\Post.Service\CQRS\Command\Post\Create\CreatePostInformationCommandHandler.cs:line 31
at Post.Service.Controllers.PostController.Post(CreatePostDTO createPostDTO) in H:\Programming_Courses\MediumArticles\Event-Sourcing_Event-Driven-Architecture\EventSourcingExample\Post.Service\Controllers\PostController.cs:line 28
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, 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.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)

HEADERS

Accept: /
Connection: keep-alive
Host: localhost:6001
User-Agent: PostmanRuntime/7.32.3
Accept-Encoding: gzip, deflate, br
Content-Type: application/json
Content-Length: 63
Postman-Token: 030f1270-0d02-48ad-8e3f-7a49fe120bde

you are using an out of date version of EventStore ( v5)

refer to this Installation | EventStoreDB Documentation
to get running with a more recent version

The error is probably because you are correctly using the newer gRPC based client and V5 does not
support that protocol

Thank you so much. It works correctly after downgrading the version.