Sidekick-Poe / Sidekick

The main repository for the Sidekick project, a companion trade tool for Path of Exile.
MIT License
57 stars 6 forks source link

Exception while price checking #168

Closed leMicin closed 11 months ago

leMicin commented 11 months ago
2023-12-22 15:49:15.524 -05:00 [ERR] System.Text.Json.JsonException: The JSON value could not be converted to System.Collections.Generic.Dictionary`2[System.String,Sidekick.Apis.Poe.Bulk.Results.BulkResult]. Path: $.result | LineNumber: 0 | BytePositionInLine: 46.
   at System.Text.Json.ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type propertyType)
   at System.Text.Json.Serialization.JsonDictionaryConverter`3.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, TDictionary& value)
   at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   at System.Text.Json.Serialization.Metadata.JsonPropertyInfo`1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader)
   at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan`1 utf8Json, JsonTypeInfo jsonTypeInfo, Nullable`1 actualByteCount)
   at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan`1 json, JsonTypeInfo jsonTypeInfo)
   at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options)
   at Sidekick.Apis.Poe.Bulk.BulkTradeService.SearchBulk(Item item, TradeCurrency currency, Int32 minStock) in C:\Repos\Sidekick\src\Sidekick.Apis.Poe\Bulk\BulkTradeService.cs:line 89
   at Sidekick.Modules.Trade.Components.Bulk.BulkResult.Search() in C:\Repos\Sidekick\src\Sidekick.Modules.Trade\Components\Bulk\BulkResult.razor:line 75
   at Sidekick.Modules.Trade.Prices.UpdateQuery() in C:\Repos\Sidekick\src\Sidekick.Modules.Trade\Prices.razor:line 96
   at Sidekick.Modules.Trade.Prices.OnAfterRenderAsync(Boolean firstRender) in C:\Repos\Sidekick\src\Sidekick.Modules.Trade\Prices.razor:line 81
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
System.Text.Json.JsonException: The JSON value could not be converted to System.Collections.Generic.Dictionary`2[System.String,Sidekick.Apis.Poe.Bulk.Results.BulkResult]. Path: $.result | LineNumber: 0 | BytePositionInLine: 46.
   at System.Text.Json.ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type propertyType)
   at System.Text.Json.Serialization.JsonDictionaryConverter`3.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, TDictionary& value)
   at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   at System.Text.Json.Serialization.Metadata.JsonPropertyInfo`1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader)
   at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan`1 utf8Json, JsonTypeInfo jsonTypeInfo, Nullable`1 actualByteCount)
   at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan`1 json, JsonTypeInfo jsonTypeInfo)
   at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options)
   at Sidekick.Apis.Poe.Bulk.BulkTradeService.SearchBulk(Item item, TradeCurrency currency, Int32 minStock) in C:\Repos\Sidekick\src\Sidekick.Apis.Poe\Bulk\BulkTradeService.cs:line 89
   at Sidekick.Modules.Trade.Components.Bulk.BulkResult.Search() in C:\Repos\Sidekick\src\Sidekick.Modules.Trade\Components\Bulk\BulkResult.razor:line 75
   at Sidekick.Modules.Trade.Prices.UpdateQuery() in C:\Repos\Sidekick\src\Sidekick.Modules.Trade\Prices.razor:line 96
   at Sidekick.Modules.Trade.Prices.OnAfterRenderAsync(Boolean firstRender) in C:\Repos\Sidekick\src\Sidekick.Modules.Trade\Prices.razor:line 81
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)