notion-py icon indicating copy to clipboard operation
notion-py copied to clipboard

Unable to create a new row in notion database

Open EhsanTadayon opened this issue 2 years ago • 2 comments

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

EhsanTadayon avatar Dec 11 '22 18:12 EhsanTadayon

Same problem, let me know if you find a solution

Sadisms avatar Dec 15 '22 10:12 Sadisms

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

Sadisms avatar Dec 19 '22 04:12 Sadisms