Skip to content

Fails to build when columns are used in Notion page #121

@davidmoore1

Description

@davidmoore1

Describe the bug
If you add a 2 or 3 column entry into a page on Notion, docu-notion fails when it attempts to convert that page

** Reproduction Steps **
I created a two column entry first by moving an image next to another one and it failed the build. I then put it back so that it built ok and then just manually added two columns by adding an entry, typing /co and then selecting 2 columns, and then entering the word "test" in each of the two columns and then tried to rebuild and it failed.

I got the following console output in the action output:
/home/runner/work/appbuilder-docs/appbuilder-docs/node_modules/notion-client/src/notion-api.ts:54
throw new Error(Notion page not found "${uuidToId(pageId)}")
^
Error: Notion page not found "1f90f05bb663806c9ebfefb437c80cd2"
at NotionAPI. (/home/runner/work/appbuilder-docs/appbuilder-docs/node_modules/notion-client/src/notion-api.ts:54:13)
at step (/home/runner/work/appbuilder-docs/appbuilder-docs/node_modules/notion-client/build/cjs/notion-api.js:44:23)
at Object.next (/home/runner/work/appbuilder-docs/appbuilder-docs/node_modules/notion-client/build/cjs/notion-api.js:25:53)
at fulfilled (/home/runner/work/appbuilder-docs/appbuilder-docs/node_modules/notion-client/build/cjs/notion-api.js:16:58)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
error Command failed with exit code 1.

Expected behavior
The build would complete successfully. Hopefully the two images would appear side by side.

Screenshots
This shows the part of the Notion page where I had the two columns defined (The Test 1/Test 2 lines are the single line with two columns)
Image

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