Closed halointernet closed 7 months ago
device_id: 5913C0D5F7AC1F0D888C348E01835FF6
Exception Data:
----------------------------------------
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: users.InnerId'.
at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
at Snap.Hutao.Core.Database.DbSetExtension.SaveChangesAndClearChangeTrackerAsync[TEntity](DbSet`1 dbSet) in D:\appveyor\project\Snap.Hutao.Project-m2qnyjlfvcfi05e5\src\Snap.Hutao\Snap.Hutao\Core\Database\DbSetExtension.cs:line 143
at Snap.Hutao.Service.User.UserDbService.AddUserAsync(User user) in D:\appveyor\project\Snap.Hutao.Project-m2qnyjlfvcfi05e5\src\Snap.Hutao\Snap.Hutao\Service\User\UserDbService.cs:line 48
at Snap.Hutao.Service.User.UserCollectionService.TryCreateAndAddUserFromInputCookieAsync(InputCookie inputCookie) in D:\appveyor\project\Snap.Hutao.Project-m2qnyjlfvcfi05e5\src\Snap.Hutao\Snap.Hutao\Service\User\UserCollectionService.cs:line 183
at Snap.Hutao.Service.User.UserService.ProcessInputCookieAsync(InputCookie inputCookie) in D:\appveyor\project\Snap.Hutao.Project-m2qnyjlfvcfi05e5\src\Snap.Hutao\Snap.Hutao\Service\User\UserService.cs:line 76
at Snap.Hutao.ViewModel.User.UserViewModel.LoginByQRCode() in D:\appveyor\project\Snap.Hutao.Project-m2qnyjlfvcfi05e5\src\Snap.Hutao\Snap.Hutao\ViewModel\User\UserViewModel.cs:line 204
at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()
问米哈游去,目前我们无能为力
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topic.
检查清单
Windows 版本
22621.521
Snap Hutao 版本
1.9.9.0
设备 ID
5913C0D5F7AC1F0D888C348E01835FF6
问题分类
实时便笺
发生了什么?
使用便签更新数据显示5003,信息为空
你期望发生的行为?
怎么能恢复正常
最后一步