Closed juanpabloaj closed 1 year ago
with Python 3.10.13 and the example of the README
Python 3.10.13
from notion.client import NotionClient token = "v02%3Auser_token_or_cookies%3..." client = NotionClient(token_v2=token) page = client.get_block( "https://www.notion.so/..." ) print(page.title)
I get the error
notion.client.NotionValidationError: Something went wrong. (400)
I solved it changing this line from 100000 to 100
https://github.com/arturtamborski/notion-py/blob/f282ad2e0971302f6b6e14e2f029b90987228adf/notion/store.py#L287
I got the solution from here
https://github.com/paperboi/kindle2notion/issues/14
with
Python 3.10.13
and the example of the READMEI get the error