Description
Describe the bug
Fails to fetch the icon
To Reproduce
Steps to reproduce the behavior:
- Query a Database such as
https://inscryption-pvp-wiki.notion.site/aa7158c620e14c1bade56faa7c09cd63?v=31c4f43f14dc465ab1f7d6a77b4ae79e
Expected behavior
It should not error
Printed Error
Unhandled exception. Newtonsoft.Json.JsonSerializationException: Could not create an instance of type Notion.Client.IPageIcon. Type is an interface or abstract class and cannot be instantiated. Path 'type', line 1, position 2080.
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at JsonSubTypes.JsonSubtypes.ThreadStaticReadObject(JsonReader reader, JsonSerializer serializer, JToken jToken, Type targetType)
at JsonSubTypes.JsonSubtypes.ReadJson(JsonReader reader, Type objectType, JsonSerializer serializer)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at JsonSubTypes.JsonSubtypes.ThreadStaticReadObject(JsonReader reader, JsonSerializer serializer, JToken jToken, Type targetType)
at JsonSubTypes.JsonSubtypes.ReadJson(JsonReader reader, Type objectType, JsonSerializer serializer)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Notion.Client.Extensions.HttpResponseMessageExtensions.ParseStreamAsync[T](HttpResponseMessage response, JsonSerializerSettings serializerSettings)
at Notion.Client.RestClient.PostAsync[T](String uri, Object body, IEnumerable1 queryParams, IDictionary
2 headers, JsonSerializerSettings serializerSettings, CancellationToken cancellationToken)
at Notion.Client.DatabasesClient.QueryAsync(String databaseId, DatabasesQueryParameters databasesQueryParameters, CancellationToken cancellationToken)
at KamWerksCardIndexCSharp.Notion.NotionEnd.RetryWithBackoff[T](Func`1 action, Int32 maxRetries)
at KamWerksCardIndexCSharp.Notion.NotionEnd.FetchAllPageIds(NotionClient client, String databaseId) in C:\Users\Thinc\Documents\GitHub\KamWerksCardIndexCSharp\KamWerksCardIndexCSharp\Notion\NotionEnd.cs:line 84
at KamWerksCardIndexCSharp.Notion.NotionEnd.NotionMain() in C:\Users\Thinc\Documents\GitHub\KamWerksCardIndexCSharp\KamWerksCardIndexCSharp\Notion\NotionEnd.cs:line 61
at KamWerksCardIndexCSharp.DiscordBot.DiscordEnd.HandleNotionAndDiscordAsync() in C:\Users\Thinc\Documents\GitHub\KamWerksCardIndexCSharp\KamWerksCardIndexCSharp\DiscordBot\DiscordEnd.cs:line 34
at KamWerksCardIndexCSharp.DiscordBot.DiscordEnd.Main() in C:\Users\Thinc\Documents\GitHub\KamWerksCardIndexCSharp\KamWerksCardIndexCSharp\DiscordBot\DiscordEnd.cs:line 19
at KamWerksCardIndexCSharp.DiscordBot.DiscordEnd.
For reference my Code Base: https://github.com/SaxbyMod/KamWerksCardIndexCSharp