marekfilippi@MacBook-Air-uzivatela-Marek kindle-to-notion % npm start > start > tsc && node dist/main.js πŸ“‹ Parsing Clippings βž• Grouping Clippings πŸ’Ή Stats for Clippings -------------------------------------- πŸ“ Title: The Almanack of Naval Ravikant: A Guide to Wealth and Happiness πŸ™‹ Author: Eric Jorgenson πŸ’― Highlights Count: 109 -------------------------------------- πŸ“ Title: The Psychology of Money: Timeless Lessons on Wealth, Greed, and Happiness πŸ™‹ Author: Morgan Housel πŸ’― Highlights Count: 89 -------------------------------------- πŸ“ Title: Na zΓ‘padnΓ­ frontΔ› klid πŸ™‹ Author: Erich Maria Remarque πŸ’― Highlights Count: 25 -------------------------------------- πŸš€ Syncing highlights to Notion πŸ” Syncing book: The Almanack of Naval Ravikant: A Guide to Wealth and Happiness πŸ“š Book not present, creating notion page @notionhq/client warn: request fail { code: 'validation_error', message: 'body failed validation. Fix one:\n' + 'body.children.length should be ≀ `100`, instead was `110`.\n' + 'body.parent.page_id should be defined, instead was `undefined`.' } Failed to create page APIResponseError: body failed validation. Fix one: body.children.length should be ≀ `100`, instead was `110`. body.parent.page_id should be defined, instead was `undefined`. at Object.buildRequestError (/Users/marekfilippi/Desktop/kindle-to-notion/node_modules/@notionhq/client/build/src/errors.js:162:16) at Client.request (/Users/marekfilippi/Desktop/kindle-to-notion/node_modules/@notionhq/client/build/src/Client.js:304:32) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async NotionAdapter.createPage (/Users/marekfilippi/Desktop/kindle-to-notion/dist/adapters/notion.js:128:34) at async Notion.syncHighlights (/Users/marekfilippi/Desktop/kindle-to-notion/dist/models/notion.js:63:29) at async /Users/marekfilippi/Desktop/kindle-to-notion/dist/main.js:10:5 { code: 'validation_error', status: 400, headers: Headers { [Symbol(map)]: [Object: null prototype] { date: [Array], 'content-type': [Array], 'content-length': [Array], connection: [Array], 'set-cookie': [Array], 'content-security-policy': [Array], 'x-dns-prefetch-control': [Array], 'x-frame-options': [Array], 'strict-transport-security': [Array], 'x-download-options': [Array], 'x-content-type-options': [Array], 'x-permitted-cross-domain-policies': [Array], 'referrer-policy': [Array], 'x-xss-protection': [Array], etag: [Array], vary: [Array], 'cf-cache-status': [Array], server: [Array], 'cf-ray': [Array] } }, body: '{"object":"error","status":400,"code":"validation_error","message":"body failed validation. Fix one:\\nbody.children.length should be ≀ `100`, instead was `110`.\\nbody.parent.page_id should be defined, instead was `undefined`."}' } ❌ Failed to sync highlights APIResponseError: body failed validation. Fix one: body.children.length should be ≀ `100`, instead was `110`. body.parent.page_id should be defined, instead was `undefined`. at Object.buildRequestError (/Users/marekfilippi/Desktop/kindle-to-notion/node_modules/@notionhq/client/build/src/errors.js:162:16) at Client.request (/Users/marekfilippi/Desktop/kindle-to-notion/node_modules/@notionhq/client/build/src/Client.js:304:32) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async NotionAdapter.createPage (/Users/marekfilippi/Desktop/kindle-to-notion/dist/adapters/notion.js:128:34) at async Notion.syncHighlights (/Users/marekfilippi/Desktop/kindle-to-notion/dist/models/notion.js:63:29) at async /Users/marekfilippi/Desktop/kindle-to-notion/dist/main.js:10:5 { code: 'validation_error', status: 400, headers: Headers { [Symbol(map)]: [Object: null prototype] { date: [Array], 'content-type': [Array], 'content-length': [Array], connection: [Array], 'set-cookie': [Array], 'content-security-policy': [Array], 'x-dns-prefetch-control': [Array], 'x-frame-options': [Array], 'strict-transport-security': [Array], 'x-download-options': [Array], 'x-content-type-options': [Array], 'x-permitted-cross-domain-policies': [Array], 'referrer-policy': [Array], 'x-xss-protection': [Array], etag: [Array], vary: [Array], 'cf-cache-status': [Array], server: [Array], 'cf-ray': [Array] } }, body: '{"object":"error","status":400,"code":"validation_error","message":"body failed validation. Fix one:\\nbody.children.length should be ≀ `100`, instead was `110`.\\nbody.parent.page_id should be defined, instead was `undefined`."}' } -------------------------------------- node:internal/process/promises:288 triggerUncaughtException(err, true /* fromPromise */); ^ APIResponseError: body failed validation. Fix one: body.children.length should be ≀ `100`, instead was `110`. body.parent.page_id should be defined, instead was `undefined`. at Object.buildRequestError (/Users/marekfilippi/Desktop/kindle-to-notion/node_modules/@notionhq/client/build/src/errors.js:162:16) at Client.request (/Users/marekfilippi/Desktop/kindle-to-notion/node_modules/@notionhq/client/build/src/Client.js:304:32) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async NotionAdapter.createPage (/Users/marekfilippi/Desktop/kindle-to-notion/dist/adapters/notion.js:128:34) at async Notion.syncHighlights (/Users/marekfilippi/Desktop/kindle-to-notion/dist/models/notion.js:63:29) at async /Users/marekfilippi/Desktop/kindle-to-notion/dist/main.js:10:5 { code: 'validation_error', status: 400, headers: Headers { [Symbol(map)]: [Object: null prototype] { date: [ 'Sat, 01 Oct 2022 08:55:54 GMT' ], 'content-type': [ 'application/json; charset=utf-8' ], 'content-length': [ '229' ], connection: [ 'close' ], 'set-cookie': [ 'notion_browser_id=84e557c7-e7f7-4e11-b135-8b9c275941c9; Domain=www.notion.so; Path=/; Expires=Sun, 01 Oct 2023 08:55:53 GMT; Secure', 'notion_check_cookie_consent=true; Domain=www.notion.so; Path=/; Expires=Sun, 02 Oct 2022 08:55:53 GMT; Secure' ], 'content-security-policy': [ "script-src 'self' 'unsafe-inline' 'unsafe-eval' https://gist.github.com https://apis.google.com https://www.google.com https://www.gstatic.com https://cdn.amplitude.com https://api.amplitude.com https://hkfxbbdzib.notion.so https://widget.intercom.io https://js.intercomcdn.com https://static.zdassets.com https://api.smooch.io\t https://logs-01.loggly.com https://http-inputs-notion.splunkcloud.com https://cdn.segment.com https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com https://js.stripe.com https://embed.typeform.com https://admin.typeform.com https://public.profitwell.com js.sentry-cdn.com https://js.chilipiper.com https://platform.twitter.com https://cdn.syndication.twimg.com https://accounts.google.com https://www.googletagmanager.com https://www.googleadservices.com https://googleads.g.doubleclick.net https://api-v2.mutinyhq.io https://client-registry.mutinycdn.com https://client.mutinycdn.com https://user-data.mutinycdn.com;connect-src 'self' https://msgstore.www.notion.so wss://msgstore.www.notion.so ws://localhost:* ws://127.0.0.1:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com https://cdn.amplitude.com https://api.amplitude.com https://hkfxbbdzib.notion.so https://www.notion.so https://api.embed.ly https://js.intercomcdn.com https://api-iam.intercom.io https://uploads.intercomcdn.com wss://nexus-websocket-a.intercom.io https://ekr.zdassets.com https://ekr.zendesk.com\t https://makenotion.zendesk.com\t https://api.smooch.io\t wss://api.smooch.io\t https://logs-01.loggly.com https://http-inputs-notion.splunkcloud.com https://cdn.segment.com https://api.segment.io https://analytics.pgncs.notion.so https://api.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com https://js.stripe.com https://cdn.contentful.com https://preview.contentful.com https://images.ctfassets.net https://www2.profitwell.com https://tracking.chilipiper.com https://api.chilipiper.com https://api.unsplash.com https://boards-api.greenhouse.io https://accounts.google.com https://oauth2.googleapis.com https://www.googletagmanager.com https://analytics.google.com https://www.googleadservices.com https://googleads.g.doubleclick.net https://region1.google-analytics.com https://region1.analytics.google.com https://www.google-analytics.com https://api-v2.mutinyhq.io https://client-registry.mutinycdn.com https://client.mutinycdn.com https://user-data.mutinycdn.com https://api.statuspage.io https://pgncd.notion.so https://api.statsig.com https://statsigapi.net https://exp.notion.so https://file.notion.so;font-src 'self' data: https://cdnjs.cloudflare.com https://js.intercomcdn.com;img-src 'self' data: blob: https: https://platform.twitter.com https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com https://region1.google-analytics.com https://region1.analytics.google.com;style-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com https://github.githubassets.com https://js.chilipiper.com https://platform.twitter.com https://ton.twimg.com https://accounts.google.com;frame-src https: http: https://accounts.google.com;media-src https: http: https://file.notion.so" ], 'x-dns-prefetch-control': [ 'off' ], 'x-frame-options': [ 'SAMEORIGIN' ], 'strict-transport-security': [ 'max-age=5184000; includeSubDomains' ], 'x-download-options': [ 'noopen' ], 'x-content-type-options': [ 'nosniff' ], 'x-permitted-cross-domain-policies': [ 'none' ], 'referrer-policy': [ 'strict-origin-when-cross-origin' ], 'x-xss-protection': [ '0' ], etag: [ 'W/"e5-B9yMy9vNSFNkB/sw30YmTgSsuVY"' ], vary: [ 'Accept-Encoding' ], 'cf-cache-status': [ 'DYNAMIC' ], server: [ 'cloudflare' ], 'cf-ray': [ '7533fb5e4ab94137-PRG' ] } }, body: '{"object":"error","status":400,"code":"validation_error","message":"body failed validation. Fix one:\\nbody.children.length should be ≀ `100`, instead was `110`.\\nbody.parent.page_id should be defined, instead was `undefined`."}' } Node.js v18.10.0 marekfilippi@MacBook-Air-uzivatela-Marek kindle-to-notion %