-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Error in Syncing - APIResponseError: body failed validation #463
Comments
Hi @colettembrown, thanks for reporting this! I can see there are a couple issues occurring here. API error caused by deeply-nested blocksThe first issue is the API error that's causing the note to fail to sync. You're encountering a limitation of the Notion API which I haven't had a chance to work around yet. Specifically, the API only allows blocks nested at most three levels deep. In this case, the error is being caused by the numbered list with four levels of nesting starting at "Support Vector Machines." I believe the note should be able to sync if you're able to remove that fourth level from all your lists, but that's obviously not an ideal solution. To make this actually work as desired, we'll have to:
It's going to be tricky, and I haven't yet figured out how to approach it. Until I can solve it, I'm afraid the only workaround is to reduce the nesting in your notes. Duplicate "Zotero Notes" blocksThe second issue is a side-effect of the first one. When Notero encounters the API error, it doesn't currently handle it as gracefully as it could and leaves a mess behind in Notion as you've seen. I think I can improve this error handling so that you don't end up with a bunch of duplicate blocks in Notion. Luckily, I think this should be easier to solve than the other issue. In the meantime, feel free to delete all those "Zotero Notes" blocks. |
Hi @colettembrown, I've just released a new version (0.5.15) that contains a fix for the duplicate "Zotero Notes" blocks. If you delete all the duplicate blocks currently in Notion, Notero should now correctly manage just a single "Zotero Notes" block. Unfortunately, your note will still fail to sync until I come up with a fix for the more complex issue here. But, once I do have a fix in place, Notero should sync that note into the correct place in Notion. Please let me know if this first fix is working for you! |
Hi @dvanoni I am no longer getting the duplicate "Zotero Notes" blocks, and I deleted the old ones. It works for me to just remove some of the deeply-nested blocks, and work in 1-2 levels of writing. When you say any block nested beyond three levels, does this mean I can do this below, and not get an issue?
Thank you for being so quick to respond and fix one of these issues!! |
@colettembrown, I'm glad that first fix is working for you! And yes, you're correct about what should work without issue. Just to be super clear:
|
Thank you for clarifying! |
Describe the issue
I am receiving an error about the type of notes I'm adding into a zotero notes document that I want to sync with Notion. My Notion and Zotero sync any paper that I add my specific folders that are connected via the integration. When I add anything to my notes document I get the following error:
And then when I look in Notion there are dozens of "Zotero Notes" dropdowns with the first item under the heading that I included in my Zotero notes.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: