You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throws the Error converting value "unique" to type 'Notion.Client.Function'. Path 'rollup.function', line 1, position 1299.
Here is the stack trace:
atNewtonsoft.Json.Converters.StringEnumConverter.ReadJson(JsonReaderreader,TypeobjectType,ObjectexistingValue,JsonSerializerserializer)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverterconverter,JsonReaderreader,TypeobjectType,ObjectexistingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonPropertyproperty,JsonConverterpropertyConverter,JsonContainerContractcontainerContract,JsonPropertycontainerProperty,JsonReaderreader,Objecttarget)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(ObjectnewObject,JsonReaderreader,JsonObjectContractcontract,JsonPropertymember,Stringid)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReaderreader,TypeobjectType,JsonContractcontract,JsonPropertymember,JsonContainerContractcontainerContract,JsonPropertycontainerMember,ObjectexistingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReaderreader,TypeobjectType,JsonContractcontract,JsonPropertymember,JsonContainerContractcontainerContract,JsonPropertycontainerMember,ObjectexistingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonPropertyproperty,JsonConverterpropertyConverter,JsonContainerContractcontainerContract,JsonPropertycontainerProperty,JsonReaderreader,Objecttarget)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(ObjectnewObject,JsonReaderreader,JsonObjectContractcontract,JsonPropertymember,Stringid)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReaderreader,TypeobjectType,JsonContractcontract,JsonPropertymember,JsonContainerContractcontainerContract,JsonPropertycontainerMember,ObjectexistingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReaderreader,TypeobjectType,JsonContractcontract,JsonPropertymember,JsonContainerContractcontainerContract,JsonPropertycontainerMember,ObjectexistingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReaderreader,TypeobjectType,BooleancheckAdditionalContent)
at Newtonsoft.Json.Serialization.JsonSerializerProxy.DeserializeInternal(JsonReaderreader,TypeobjectType)
at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReaderreader,TypeobjectType)
at JsonSubTypes.JsonSubtypes.ThreadStaticReadObject(JsonReaderreader,JsonSerializerserializer,JTokenjToken,TypetargetType)
at JsonSubTypes.JsonSubtypes.ReadObject(JsonReaderreader,TypeobjectType,JsonSerializerserializer)
at JsonSubTypes.JsonSubtypes.ReadJson(JsonReaderreader,TypeobjectType,JsonSerializerserializer)
at JsonSubTypes.JsonSubtypes.ReadJson(JsonReaderreader,TypeobjectType,ObjectexistingValue,JsonSerializerserializer)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverterconverter,JsonReaderreader,TypeobjectType,ObjectexistingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionarydictionary,JsonReaderreader,JsonDictionaryContractcontract,JsonPropertycontainerProperty,Stringid)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReaderreader,TypeobjectType,JsonContractcontract,JsonPropertymember,JsonContainerContractcontainerContract,JsonPropertycontainerMember,ObjectexistingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReaderreader,TypeobjectType,JsonContractcontract,JsonPropertymember,JsonContainerContractcontainerContract,JsonPropertycontainerMember,ObjectexistingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonPropertyproperty,JsonConverterpropertyConverter,JsonContainerContractcontainerContract,JsonPropertycontainerProperty,JsonReaderreader,Objecttarget)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(ObjectnewObject,JsonReaderreader,JsonObjectContractcontract,JsonPropertymember,Stringid)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReaderreader,TypeobjectType,JsonContractcontract,JsonPropertymember,JsonContainerContractcontainerContract,JsonPropertycontainerMember,ObjectexistingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReaderreader,TypeobjectType,JsonContractcontract,JsonPropertymember,JsonContainerContractcontainerContract,JsonPropertycontainerMember,ObjectexistingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReaderreader,TypeobjectType,BooleancheckAdditionalContent)
at Newtonsoft.Json.Serialization.JsonSerializerProxy.DeserializeInternal(JsonReaderreader,TypeobjectType)
at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReaderreader,TypeobjectType)
at JsonSubTypes.JsonSubtypes.ThreadStaticReadObject(JsonReaderreader,JsonSerializerserializer,JTokenjToken,TypetargetType)
at JsonSubTypes.JsonSubtypes.ReadObject(JsonReaderreader,TypeobjectType,JsonSerializerserializer)
at JsonSubTypes.JsonSubtypes.ReadJson(JsonReaderreader,TypeobjectType,JsonSerializerserializer)
at JsonSubTypes.JsonSubtypes.ReadJson(JsonReaderreader,TypeobjectType,ObjectexistingValue,JsonSerializerserializer)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverterconverter,JsonReaderreader,TypeobjectType,ObjectexistingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IListlist,JsonReaderreader,JsonArrayContractcontract,JsonPropertycontainerProperty,Stringid)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReaderreader,TypeobjectType,JsonContractcontract,JsonPropertymember,ObjectexistingValue,Stringid)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReaderreader,TypeobjectType,JsonContractcontract,JsonPropertymember,JsonContainerContractcontainerContract,JsonPropertycontainerMember,ObjectexistingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonPropertyproperty,JsonConverterpropertyConverter,JsonContainerContractcontainerContract,JsonPropertycontainerProperty,JsonReaderreader,Objecttarget)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(ObjectnewObject,JsonReaderreader,JsonObjectContractcontract,JsonPropertymember,Stringid)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReaderreader,TypeobjectType,JsonContractcontract,JsonPropertymember,JsonContainerContractcontainerContract,JsonPropertycontainerMember,ObjectexistingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReaderreader,TypeobjectType,JsonContractcontract,JsonPropertymember,JsonContainerContractcontainerContract,JsonPropertycontainerMember,ObjectexistingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReaderreader,TypeobjectType,BooleancheckAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReaderreader,TypeobjectType)
at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReaderreader,TypeobjectType)
at Newtonsoft.Json.JsonSerializer.Deserialize[T](JsonReaderreader)
at Notion.Client.Extensions.HttpResponseMessageExtensions.ParseStreamAsync[T](HttpResponseMessageresponse,JsonSerializerSettingsserializerSettings)
at Notion.Client.RestClient.PostAsync[T](Stringuri,Objectbody, IDictionary`2queryParams, IDictionary`2headers,JsonSerializerSettingsserializerSettings,CancellationTokencancellationToken)
at Notion.Client.SearchClient.SearchAsync(SearchParametersparameters)
at NotionFinance.Services.NotionService.GetDatabasesAsync()in/src/NotionFinance/Services/NotionService.cs:line 40
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
A clear and concise description of what you expected to happen.
Getting a valid PaginatedList<Database>
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Docker Linux Container with Notion.Net 2.2.2 version
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Looks like the documentation is outdated. https://developers.notion.com/reference/database. To avoid such errors in future I will converting it the type to string so it won't fail when new functions are added considering the API is still under development and may introduce lot of changes.
Describe the bug
A clear and concise description of what the bug is.
In an attempt to get databases of a user, using
throws the
Error converting value "unique" to type 'Notion.Client.Function'. Path 'rollup.function', line 1, position 1299.
Here is the stack trace:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Getting a valid
PaginatedList<Database>
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: