unstructured icon indicating copy to clipboard operation
unstructured copied to clipboard

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

Open qued opened this issue 2 years ago • 0 comments

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.

qued avatar Feb 07 '24 20:02 qued