notion-sdk-py: in query empty start_cursor option throws error
hi,
I try to make a query:
next_cursor = None
results = notion.databases.query(
**{
"database_id": DB_GMB_ID,
"start_cursor": next_cursor
}
)
I receive the error:
APIResponseError: body failed validation: body.start_cursor should be a string or `undefined`, instead was `null`.
โโ produces the same result.
What value should be used to satisfy undefined start_cursor?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 16 (11 by maintainers)
I just released 0.9.0. Thanks!
Should be fixed now. ๐
Really good point @thomashirtz ,
In the meanwhile, you can pip install directly from GitHub. Here is a link to the pip documentation on vcs support:
https://pip.pypa.io/en/stable/topics/vcs-support/
Hereโs another blog post which might be easier to read and extract useful information:
https://adamj.eu/tech/2019/03/11/pip-install-from-a-git-repository/