transitive-bullshit / nextjs-notion-starter-kit

Deploy your own Notion-powered website in minutes with Next.js and Vercel.
https://transitivebullsh.it/nextjs-notion-starter-kit
MIT License
6.22k stars 5.25k forks source link

Page loading error #100

Closed yizhen666 closed 3 years ago

yizhen666 commented 3 years ago

Page loading error when the title of the Notion page contains English

Issue page link https://www.yizhen.ga/wearos

image image

transitive-bullshit commented 3 years ago

Hey @wz1616, what did the issue end up being?

yizhen666 commented 3 years ago

Hey @wz1616, what did the issue end up being?

Ah, I found the problem, because I put an unpublished page on the blog root page, as if all pages with English titles would be jumped to this unpublished page. It's normal to delete that unpublished page. I have worked it out! Here is the Vercel log:

} Error: Notion page not found "c2a1f2ee2c7e4b3ba0a910175c648d3d" 21:34:56   at NotionAPI. (/vercel/path1/node_modules/notion-client/build/cjs/notion-api.js:82:35) 21:34:56   at step (/vercel/path1/node_modules/notion-client/build/cjs/notion-api.js:44:23) 21:34:56   at Object.next (/vercel/path1/node_modules/notion-client/build/cjs/notion-api.js:25:53) 21:34:56   at fulfilled (/vercel/path1/node_modules/notion-client/build/cjs/notion-api.js:16:58) 21:34:56   at processTicksAndRejections (internal/process/task_queues.js:93:5) 21:34:56   site build error 0 {