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

HTTPERROR using children.add_new #366

Open
ghost opened this issue Feb 22, 2022 · 0 comments
Open

HTTPERROR using children.add_new #366

ghost opened this issue Feb 22, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 22, 2022

When trying to use children.add_new(block_type=’TextBlock’):

Traceback (most recent call last):
  File "/Users/steven/Documents/Scripts/Python/RSS to Notion.py", line 35, in <module>
    pg.children.add_new(block_type="TextBlock", title=pypandoc.convert_text(entry['content'][0]['value'], to='markdown', format='html', extra_args=['--atx-headers']))
  File "/opt/homebrew/lib/python3.9/site-packages/notion/block.py", line 126, in add_new
    block_id = self._client.create_record(
  File "/opt/homebrew/lib/python3.9/site-packages/notion/client.py", line 394, in create_record
    self.submit_transaction(
  File "/opt/homebrew/lib/python3.9/site-packages/notion/client.py", line 435, in __exit__
    self.client.submit_transaction(operations)
  File "/opt/homebrew/lib/python3.9/site-packages/notion/client.py", line 290, in submit_transaction
    self.post("submitTransaction", data)
  File "/opt/homebrew/lib/python3.9/site-packages/notion/client.py", line 260, in post
    raise HTTPError(
requests.exceptions.HTTPError: Unsaved transactions: runQuery
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

0 participants