I just updated from 0.29.1 to 0.32.0 and I'm not sure if this issue is a bug in my code or not. I can't see any obvious issue on my end. Dapper was also updated from 1.50.4-alpha1-00070 to 1.50.4
Code block that is starting the connection:
https://github.com/SteamDatabase/SteamDatabaseBackend/blob/e6953ba6a20bb89fe4abe25f2fee1f663c3057d3/Processors/DepotProcessor.cs#L626-L632
And then it throws on the very first call to QueryAsync on the same database connection in ProcessDepotAfterDownload.
Full stack trace:
Exception: System.InvalidOperationException: The transaction associated with this command is not the connection's active transaction.
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Dapper.SqlMapper.<QueryAsync>d__31`1.MoveNext() in C:\projects\dapper\Dapper\SqlMapper.Async.cs:line 389
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at SteamDatabaseBackend.DepotProcessor.<ProcessDepotAfterDownload>d__20.MoveNext() in D:\GitHub\SteamDatabaseBackend\Processors\DepotProcessor.cs:line 637
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at SteamDatabaseBackend.DepotProcessor.<ProcessDepotAfterDownload>d__19.MoveNext() in D:\GitHub\SteamDatabaseBackend\Processors\DepotProcessor.cs:line 629
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at SteamDatabaseBackend.DepotProcessor.<DownloadDepots>d__16.MoveNext() in D:\GitHub\SteamDatabaseBackend\Processors\DepotProcessor.cs:line 515
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SteamDatabaseBackend.DepotProcessor.<>c__DisplayClass12_0.<<Process>b__5>d.MoveNext() in D:\GitHub\SteamDatabaseBackend\Processors\DepotProcessor.cs:line 259
I just updated from 0.29.1 to 0.32.0 and I'm not sure if this issue is a bug in my code or not. I can't see any obvious issue on my end. Dapper was also updated from
1.50.4-alpha1-00070to1.50.4Code block that is starting the connection:
https://github.com/SteamDatabase/SteamDatabaseBackend/blob/e6953ba6a20bb89fe4abe25f2fee1f663c3057d3/Processors/DepotProcessor.cs#L626-L632
And then it throws on the very first call to
QueryAsyncon the same database connection inProcessDepotAfterDownload.Full stack trace: