Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.add_row() returns an error #132

Open
davisuga opened this issue Apr 24, 2020 · 3 comments
Open

.add_row() returns an error #132

davisuga opened this issue Apr 24, 2020 · 3 comments

Comments

@davisuga
Copy link

My code:
page = 'https://www.notion.so/883f41e4c7044aa4a5439558068cd46d?v=e01f2e017b8b4ff68258cc078c8a41df'
client = NotionClient(token_v2=token)
collection = client.get_block(page).collection
newRow = collection.add_row()
newRow.subject='HIS'

Exception has occurred: AttributeError
'NoneType' object has no attribute 'set'

@heyflorin
Copy link

Having the same issue. Tried my hand at debugging but I'm not immediately seeing why the .set() method would be missing from this object.

@leosoto
Copy link

leosoto commented May 4, 2020

This is probably a duplicate of #92. I also bumped into this today. Sounds like #96 should provide a fix

@Eldhrimer
Copy link

I have encountered the same error today, and it fixed when I deleted the other views on the database. It works with only 1 view it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants