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

Notion "Block Append" node returns not own but parent data #2562

Closed
artemdzyuba opened this issue Dec 13, 2021 · 3 comments
Closed

Notion "Block Append" node returns not own but parent data #2562

artemdzyuba opened this issue Dec 13, 2021 · 3 comments

Comments

@artemdzyuba
Copy link

Describe the bug
When use the Notion node in the Block / Append mode, irrelevant data is returned. It shoud provide newly created items data. But instead it returns the parent block data. So no id-s for the new blocks, no possbile work with them.

Notion API Reference shows that these details are provided for the correct reqeusts.

To Reproduce
Steps to reproduce the behavior:

  1. Add a Notion node, set it as Block / Append
  2. Insert the parent id (f.e. the page id)
  3. Type in any text paragraph to append, like this: "A very new text"
  4. In the responce see the details of the parent block from p. 2. It looks like this:
    [ { "object": "block", "id": "a83c1f88-3595-4351-95a9-327e2cc85077", "created_time": "2021-12-13T13:44:00.000Z", "last_edited_time": "2021-12-13T15:29:00.000Z", "has_children": true, "archived": false, "type": "child_page", "child_page": { "title": "Blocks" } } ]

Expected behavior
Details if the newly created blocks should be in the responce, with their id's. Like this (taken from Notion API Reference):
[[ { "object": "block", "id": "9bc30ad4-9373-46a5-84ab-0a7845ee52e6", "created_time": "2021-03-16T16:31:00.000Z", "last_edited_time": "2021-03-16T16:32:00.000Z", "has_children": false, "type": "heading_2", "heading_2": { "text": [ { "type": "text", "text": { "content": "Lacinato kale", "link": null }, "annotations": { "bold": false, "italic": false, "strikethrough": false, "underline": false, "code": false, "color": "default" }, "plain_text": "Lacinato kale", "href": null } ] } }, { "object": "block", "id": "7face6fd-3ef4-4b38-b1dc-c5044988eec0", "created_time": "2021-03-16T16:34:00.000Z", "last_edited_time": "2021-03-16T16:36:00.000Z", "has_children": false, "type": "paragraph", "paragraph": { "text": [ { "type": "text", "text": { "content": "Lacinato kale", "link": { "url": "https://en.wikipedia.org/wiki/Lacinato_kale" } }, "annotations": { "bold": false, "italic": false, "strikethrough": false, "underline": false, "code": false, "color": "default" }, "plain_text": "Lacinato kale", "href": "https://en.wikipedia.org/wiki/Lacinato_kale" }, { "type": "text", "text": { "content": " is a variety of kale with a long tradition in Italian cuisine, especially that of Tuscany. It is also known as Tuscan kale, Italian kale, dinosaur kale, kale, flat back kale, palm tree kale, or black Tuscan palm.", "link": null }, "annotations": { "bold": false, "italic": false, "strikethrough": false, "underline": false, "code": false, "color": "default" }, "plain_text": " is a variety of kale with a long tradition in Italian cuisine, especially that of Tuscany. It is also known as Tuscan kale, Italian kale, dinosaur kale, kale, flat back kale, palm tree kale, or black Tuscan palm.", "href": null } ] } } ]

Environment (please complete the following information):

  • OS: Ubuntu Linux 20.04
  • n8n Version [e.g. 0.152.0

Additional context
Add any other context about the problem here.

@Joffcom Joffcom added the node/issue Issue with a node label Mar 21, 2022
@Joffcom
Copy link
Member

Joffcom commented Jun 20, 2022

Hey @artemdzyuba,

Are you still running into this issue? I just gave it a test on the lastest release and it looks like it is now working as you would expect.

@Joffcom Joffcom removed the node/issue Issue with a node label Jun 20, 2022
@artemdzyuba
Copy link
Author

Hi @Joffcom

Just checked and see it works for me too! Thank you for updating

@Joffcom
Copy link
Member

Joffcom commented Jun 22, 2022

No problem @artemdzyuba, I am not sure when it was fixed but I will mark this one as closed for now.

@Joffcom Joffcom closed this as completed Jun 22, 2022
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

2 participants