splitbee / notion-api-worker

Notion as CMS with easy API access
MIT License
1.56k stars 197 forks source link

Throwing Error when the page is empty #57

Closed pbteja1998 closed 3 years ago

pbteja1998 commented 3 years ago

Hi,

Thank you for making this API 🙏. It has been really helpful.

Whenever I try to use the /page/<id> API on an empty page, it's throwing an error. Not sure why it's happening. Is there any way to get around this?

janniks commented 3 years ago

@pbteja1998 👋 Can you test again? I believe this issue can be closed now.

pbteja1998 commented 3 years ago

@janniks Yes, it's not throwing any error now. If the page is empty, it's just returning {} which should be fine.