notion-ruby
notion-ruby copied to clipboard
Error in extract_collection_schema method
I am trying to add a column with the add_property
method but it returns an error.
I am getting the same error when I call rows
on collection.
irb(main):004:0> notion_page.add_property('TEST', 'url')
Traceback (most recent call last):
2: from (irb):3
1: from (irb):4:in `rescue in irb_binding'
NoMethodError (undefined method `[]' for nil:NilClass)
irb(main):005:0>
Looks like POST request in extract_collection_schema
is invalid, it is returning validation error.
response.body
"{\"errorId\":\"83f22b07-f9c5-4247-a2bf-96c20799a974\",\"name\":\"ValidationError\",\"message\":\"Invalid input.\"}"