Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notion APi doesn't support the body for more than 2000 words #1

Open
skushagra9 opened this issue Jan 26, 2024 · 0 comments
Open

Notion APi doesn't support the body for more than 2000 words #1

skushagra9 opened this issue Jan 26, 2024 · 0 comments
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@skushagra9
Copy link
Owner

Currently , I am using substring(), method to cut out the words more than 2000.
There is another way :
// This approach creates 2 pages with the same title
// if (description.length > 2000) {
// for (let i = 0; i < description.length; i += 2000) {
// let chunk = description.substring(i, i + 2000);
// await createNotionPage(message, chunk);
// }
// }else{
// await createNotionPage(message, description);
// }

So , we need to find a way so that the descripton gets uploaded to the under the same title

@skushagra9 skushagra9 added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed labels Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant