TheDiscDb / data

Source data for thediscdb
MIT License
23 stars 9 forks source link

ImportBuddy 0.7 - Unhandled Exception When Executing Finalize #22

Closed ctrl-shift-w closed 1 month ago

ctrl-shift-w commented 1 month ago
Unhandled exception. System.InvalidOperationException: Reflection-based serialization has been disabled for this application. Either use the source generator APIs or explicitly configure the 'JsonSerializerOptions.TypeInfoResolver' property.
   at System.Text.Json.ThrowHelper.ThrowInvalidOperationException_JsonSerializerIsReflectionDisabled()
   at System.Text.Json.JsonSerializerOptions.ConfigureForJsonSerializer()
   at System.Text.Json.JsonSerializerOptions.MakeReadOnly(Boolean)
   at System.Text.Json.JsonSerializer.GetTypeInfo(JsonSerializerOptions, Type)
   at System.Text.Json.JsonSerializer.GetTypeInfo[T](JsonSerializerOptions)
   at System.Text.Json.JsonSerializer.Deserialize[TValue](String , JsonSerializerOptions )
   at ImportBuddy.Finalizetask.FinalizeRelease(String) in C:\code\thediscdb\web\tools\ImportBuddy\Finalizetask.cs:line 67
   at ImportBuddy.Finalizetask.FinalizeRelease(String) in C:\code\thediscdb\web\tools\ImportBuddy\Finalizetask.cs:line 53
   at ImportBuddy.Finalizetask.Run(CommandLineOptions, CancellationToken) in C:\code\thediscdb\web\tools\ImportBuddy\Finalizetask.cs:line 48
   at ImportBuddy.Shell.Run(CommandLineOptions, CancellationToken) in C:\code\thediscdb\web\tools\ImportBuddy\Shell.cs:line 35
   at ImportBuddy.Program.Main(String[]) in C:\code\thediscdb\web\tools\ImportBuddy\Program.cs:line 16
   at ImportBuddy.Program.<Main>(String[])
lfoust commented 1 month ago

Thanks for catching this - I had only tested the import (not the finalize). I just published a new version