Thanks for the fast reply. Yes you are right I can just click cancel in the web browser.
I don’t get the tlsVerifyCert=false to work though. I do the following:
var settings = EventStoreClientSettings.Create("esdb://localhost:30004?tls=true&tlsVerifyCert=false");
settings.ChannelCredentials = new SslCredentials(ReadCert("es-ca/ca.crt"));
settings.DefaultCredentials = new UserCredentials("admin", "changeit");
var client = new EventStoreClient(settings);
await client.AppendToStreamAsync("bepa", StreamState.Any, new[] { new EventData(Uuid.NewUuid(), "Apa", new ReadOnlyMemory<byte>(new byte[0])) });
This works but if I omit setting the root cert in ChannelCredentials it doesn’t. (I used to have my client cert there as well but I just realized it was not needed).
The error I get is this:
Unhandled exception. System.InvalidOperationException: Status(StatusCode=“Unavailable”, Detail=“failed to connect to all addresses”, DebugException=“Grpc.Core.Internal.CoreErrorDetailException: {“created”:”@1651148226.538325288",“description”:“Failed to pick subchannel”,“file”:"/var/local/git/grpc/src/core/ext/filters/client_channel/client_channel.cc",“file_line”:4166,“referenced_errors”:[{“created”:"@1651148226.538320196",“description”:“failed to connect to all addresses”,“file”:"/var/local/git/grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc",“file_line”:398,“grpc_status”:14}]}")
—> Grpc.Core.RpcException: Status(StatusCode=“Unavailable”, Detail=“failed to connect to all addresses”, DebugException=“Grpc.Core.Internal.CoreErrorDetailException: {“created”:”@1651148226.538325288",“description”:“Failed to pick subchannel”,“file”:"/var/local/git/grpc/src/core/ext/filters/client_channel/client_channel.cc",“file_line”:4166,“referenced_errors”:[{“created”:"@1651148226.538320196",“description”:“failed to connect to all addresses”,“file”:"/var/local/git/grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc",“file_line”:398,“grpc_status”:14}]}")
— End of inner exception stack trace —
at EventStore.Client.Interceptors.TypedExceptionInterceptor.b__5_0[TRequest,TResponse](Task1 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)
— End of stack trace from previous location where exception was thrown —
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)