angelMachin

Results comments of angelMachin

I am having this same issue with the Sockets transport in Debian9 with sdk 2.1.4, .net core 2.1.2 Fixed by switching to libuv.

I have the same issue after migrating from dotnet8 to dotnet9 in some backend services in Debian 12 It is a random issue, sometimes it happens after hours of execution....

> [@Typhon226](https://github.com/Typhon226), [@angelMachin](https://github.com/angelMachin) > > The 'fix' for the issue is merged as [#113032](https://github.com/dotnet/runtime/pull/113032), I am wondering if you can help with testing it? Yes, sure. How could we get...

It makes sense, I was misled by the fact it was working once. Thanks

In case someone needs it: ``` Observable.FromEventPattern(ev => ItemsListBox.SelectedValueChanged += ev, ev => ItemsListBox.SelectedValueChanged -= ev) .Select(_ => ItemsListBox.SelectedItem) .BindTo(_vm, vm => vm.SelectedItem); ```

This is the stack trace: ``` at Npgsql.EntityFrameworkCore.PostgreSQL.Update.Internal.NpgsqlModificationCommandBatch.d__8.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.d__29.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.d__29.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at...

I forgot mentioning that I added in void OnModelCreating(ModelBuilder modelBuilder) `modelBuilder.UseSerialColumns();` as suggested in the release notes

This is the exception, thanks! ``` Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> Npgsql.PostgresException (0x80004005): 23503: insert or update on table "app_user"...

Coming back to this after a while... This issue is happening with both serial and identity columns Performing an intermediate SaveAsync() call before adding the second entity makes it work...

Right, the relationship is not fully defined according to the docs, the navigation property is missing. Adding it to the model makes everything work fine. However the documentation contains the...