arturtamborski / notion-py

(Fork of) Unofficial Python API client for Notion.so
https://pypi.org/project/notion-py/
MIT License
63 stars 9 forks source link

Unable to create a new row in notion database #80

Open EhsanTadayon opened 1 year ago

EhsanTadayon commented 1 year ago

Hello,

I am trying to create a new row to a notion database. The code used to work. I am still able to read the row contents but when I try to create a new row it gives me this error: HTTPError: Unsaved transactions: SpaceShardRecordPointer have no space id

appreciate any help.

thanks

Sadisms commented 1 year ago

Same problem, let me know if you find a solution

Sadisms commented 1 year ago

I found a solution, I need to add a line to args:

"space_id": self.current_space.id

https://github.com/arturtamborski/notion-py/blob/f282ad2e0971302f6b6e14e2f029b90987228adf/notion/client.py#L903