ramnes / notion-sdk-py

The official Notion API client library, but rewritten in Python! (sync + async)
https://ramnes.github.io/notion-sdk-py
MIT License
1.75k stars 138 forks source link

Error while running example "first_project" #174

Closed mccorkle closed 5 months ago

mccorkle commented 1 year ago

When running the first_project example -- I got the following errors when attempting to filter by name:

The error is somewhere around this line:

According to the documentation on developers.notion.com -- the filter object currently does not accept text as a type filter -- only rich_text:

After changing the line to search with rich_text, I was able to see the expected results for my search-by-name in the inline database.

ramnes commented 1 year ago

Yep, most likely a change on their side. Thanks for raising the issue, do you want to work on it? PR are always welcome. :)

Yunlong-He commented 1 year ago

@ramnes are you busy on other works? I also met this issue.

I am also very busy on other works, and it seems this is not a minor change. :(

ramnes commented 1 year ago

If you need this fixed quickly, I'd recommend you to investigate the issue, as it's not in my plans at the moment. Happy to help in getting a PR merged though.

ramnes commented 1 year ago

Also if @mccorkle is right, it's just a matter of replacing text by rich_text, as mentioned in the first comment. :)

Yunlong-He commented 1 year ago

yes, I just replaced that field, but not sure whether ok for all cases.

ramnes commented 5 months ago

232 should have fixed this :)