I’m trying to update content from C# app through .net client but getting this exception, I don’t know what is the root cause of it. Could you please point me in right direction, what can cause this issue “message”: “Requested version 2, but found 3.”,?
I hope this stack trace could help to pin point the issue:
“timestamp”: “2025-06-26T12:12:39Z”,
“app”: {
"name": "Squidex",
"version": "7.20.0.0",
"sessionId": "41a3e297-c2df-4cd5-ab0a-5baefe32efa1"
},
“web”: {
"requestId": "00-2887bdf5a10a6ff88c71747b4cae8653-6a66e68d606ccd6c-01",
"requestPath": "/api/content/3825c56b-a833-47a2-a95a-c686cda1c3c4/event/508d891d-4caa-4ebe-8aa5-83814bfc197a",
"requestMethod": "PUT",
"routeValues": {
"area": "api",
"action": "PutContent",
"controller": "Contents"
}
},
“category”: “Squidex.Web.ApiExceptionFilterAttribute”,
“exception”: {
"type": "Squidex.Infrastructure.States.InconsistentStateException",
"message": "Requested version 2, but found 3.",
"stackTrace": " at Squidex.Infrastructure.States.Persistence\u00601.WriteEventsAsync(IReadOnlyList\u00601 events, CancellationToken ct) in /src/src/Squidex.Infrastructure/States/Persistence.cs:line 222\n at Squidex.Infrastructure.Commands.DomainObject\u00601.WriteAsync(Envelope\u00601[] newEvents, CancellationToken ct) in /src/src/Squidex.Infrastructure/Commands/DomainObject.cs:line 400\n at Squidex.Infrastructure.Commands.DomainObject\u00601.UpsertCoreAsync[TCommand](TCommand command, Func\u00603 handler, CancellationToken ct) in /src/src/Squidex.Infrastructure/Commands/DomainObject.cs:line 251"
}
}