ijjk / notion-blog

A Next.js site using new SSG support with a Notion backed blog
https://notion-blog.vercel.app
MIT License
3.7k stars 536 forks source link

Failed to load Notion posts #61

Closed la3rence closed 3 years ago

la3rence commented 3 years ago

Hey, I just found that the notion blog posts became empty. The site https://notion-blog.vercel.app/blog shows nothing. Could it be that the Notion's API is not accessible anymore? or they changed the response structure or something else. I have tried to use the latest notion token and it doesn't work either.

5n7-sk commented 3 years ago

Same problem. Notion API has probably changed. With reference to this issue, it seems that the maximum value of the pagination limit has changed.

5n7-sk commented 3 years ago

I solved this problem by changing limit from 999 to 100. https://github.com/ijjk/notion-blog/blob/7b39503232b98a6644f09daae61abf47533b5720/src/lib/notion/getBlogIndex.ts#L26

la3rence commented 3 years ago

I solved this problem by changing limit from 999 to 100. https://github.com/ijjk/notion-blog/blob/7b39503232b98a6644f09daae61abf47533b5720/src/lib/notion/getBlogIndex.ts#L26

Yeah, it works! Thank you.

dnnaji commented 3 years ago

Worked for me as well.

la3rence commented 3 years ago

OK then I'll make a pull request from @skmatz patch file of https://github.com/skmatz/vml-blog/pull/2

62