Skip to content

table block not working #40

@ZanMarolt

Description

@ZanMarolt

Hello, thanks for maintaining this tool. 🙏

I am trying to create a basic table, but am unable to do so. My table looks like this:

| Date       | Exercise      |
|------------|---------------|
| 27.08.2022 | exercise 0    |
| 30.08.2022 | exercise 1    |
| 01.09.2022 | exercise 2    |
| 02.09.2022 | exercise 3    |

However the request fails with:

@notionhq/client warn: request fail {
  code: 'validation_error',
  message: 'body failed validation: body.children[21].table.table-width should be not present, instead was `5`.'
}
/**Path**/node_modules/@notionhq/client/build/src/errors.js:162
        return new APIResponseError({
               ^

APIResponseError: body failed validation: body.children[21].table.table-width should be not present, instead was `5`.

I am using markdownToBlocks function with package versions:

    "@notionhq/client": "2.2.0",
    "@tryfabric/martian": "1.2.4",

Anyone else facing similar issue?

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