Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

can't deserialize default_background #466

Open
@kkuepper

Description

Describe the bug
Can't deserialize page content when a paragraph is using the default background:

Newtonsoft.Json.JsonSerializationException: Error converting value "default_background" to type 'System.Nullable`1[Notion.Client.Color]'. Path 'paragraph.color', line 1, position 3000.
---> System.ArgumentException: Requested value 'default_background' was not found.
at Newtonsoft.Json.Utilities.EnumUtils.ParseEnum(Type enumType, NamingStrategy namingStrategy, String value, Boolean disallowNumber)
at Newtonsoft.Json.Converters.StringEnumConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)

I experienced it when working with templates. I'm not sure if it also happens for normal pages.

To Reproduce
Steps to reproduce the behavior:

  1. Create a database
  2. Create a template for new pages of the database
  3. Add a few paragraphs without changing the background color
  4. not sure what else needs to be done. (maybe something with custom layout?)
  5. Load the page content via the .NET Api
  6. There will be the above JsonSerializationException

Desktop:

  • OS: Mac

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /