Skip to content

bug: Error when ingesting Notion page that was created by a bot #47

Open
@qued

Description

@qued

Describe the bug
When ingesting Notion page that was created by a bot, the following error occurs:

  File "/opt/homebrew/lib/python3.11/site-packages/unstructured/ingest/connector/notion/types/database_properties/created_by.py", line 32, in from_dict
    return cls(created_by=People.from_dict(data.pop("created_by")), **data)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/unstructured/ingest/connector/notion/types/user.py", line 31, in from_dict
    return cls(**data)
           ^^^^^^^^^^^
TypeError: People.__init__() got an unexpected keyword argument 'bot'
Error: People.__init__() got an unexpected keyword argument 'bot'

To Reproduce

This is using the CLI, command unstructured-ingest notion.

Expected behavior

Should ingest and populate the "created by" field successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions