-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Failure to save: API_ERROR: Invalid tree info #3123
Comments
Hi @zslabs and thank you for opening this. Can you share at least one collection setup this is happening for so we can try and create a reproduction? Also it would be very helpful if you can add the network traffic (from the browser dev tools) when the error occurs. |
@erezrokah Sure thing! Of course attempting to replicate is extremely random, but I'll definitely let those that have been affected know about opening up their Network tab to help debug as well if it happens again.
|
I've set up this branch https://github.com/erezrokah/netlify-cms-reproductions/commits/netlify_cms/issue_3123 in an attempt to reproduce. One thing to consider is that when saving an editorial workflow entry the CMS will try to rebase the editorial workflow entry branch with the default branch. That operation might fail. |
@erezrokah Thanks for setting that up! That is an interesting tidbit that I forgot to mention. While my changes were done in a different file/location, I did push to the repo between saves in the CMS. I'm not quite sure if this has happened during a "fresh" creation/save, but I can at least verify when it has happened there have not been any conflicts in GitHub. |
Thanks @zslabs that helps. Another thing to try is cloning the repo locally, switching to the CMS branch with the relevant entry an attempting a rebase. |
It seems to be related to the I have some content without this widget, and do not have this problem. But with content with this widget and an entity in this relation field, the content won't save and fallback to "unsaved" state. |
Closing this as stale as many changes were done to the backends to improve error handling. |
Describe the bug
Occasionally, our contributors are seeing the following when going back to revise a post that is not published yet,
API_ERROR: Invalid tree info
. I'm not sure if it's exclusive to non-published posts, but since I didn't see this error specifically in the issues so far, it seemed like a good idea to capture this one for others to help debug if they face it in the future.To Reproduce
Applicable Versions:
CMS_MANUAL_INIT
flag set, skipping automatic initialization.'CMS configuration
The text was updated successfully, but these errors were encountered: