Closed
Description
If the page contains link_preview
blocks, BlocksClient.RetrieveChildrenAsync
throws the following exception. (version: 4.0.0-preview-4.9.11.2022)
Newtonsoft.Json.JsonSerializationException: Error converting value "link_preview" to type 'Notion.Client.BlockType'. Path 'type', line 1, position 470.
---> System.ArgumentException: Requested value 'link_preview' was not found.
at Newtonsoft.Json.Utilities.EnumUtils.ParseEnum(Type enumType, NamingStrategy namingStrategy, String value, Boolean disallowNumber)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType)
--- End of inner exception stack trace ---
https://developers.notion.com/reference/block#link-preview-blocks
https://developers.notion.com/changelog/link-previews-block-and-rich_text-supported-in-response