Send Event to EventStore

How to fix this exception " HTTP/2 error code ‘PROTOCOL_ERROR’ (0x1)", when I send event to local EventStore.

var connectionString = “esdb://admin:changeit@localhost:2113?tls=false&tlsVerifyCert=false”;
var settings = EventStoreClientSettings.Create(connectionString);
var client = new EventStoreClient(settings);
var myevent = new MyEvent { Id = Guid.NewGuid(), SomeProperty = “sdgdfg” };

var eventData = new EventData(
Uuid.NewUuid(),
“TestEvent”,
JsonSerializer.SerializeToUtf8Bytes(myevent)
);

await client.AppendToStreamAsync(
“testStream”,
StreamState.Any,
new [] { eventData },
cancellationToken: cancellationToken
);

Hi @bomorov1998
what version are you using of the

  • db ?
  • client ?

How did you start the database ?