No blogs posts showing up in admin and new blogs won't save

I can access admin just fine, but i cannot see any blogs i wrote before and when I create a blog post and try to save it I get this alert error:

‘Failed to persist entry: API_ERROR:not found’
I did some googling and found if I have : publish_mode: editorial_workflow. in my config that is what breaks it. So I removed it hoping that would fix it but it didnt.

in console I get this:
netlify-cms-app.js:14 GET https://api.github.com/repos/csmaller/coreysmaller/git/trees/master:content%2Fblog 404 (Not Found)

netlify-cms-app.js:14 GET https://api.github.com/repositories/csmaller/coreysmaller/branches/main 404 (Not Found)

and:

  1. {type: ‘ENTRY_PERSIST_FAILURE’, error: ‘Failed to persist entry’, payload: {…}}

  2. error: “Failed to persist entry”

  3. payload: {collectionName: ‘blog’, entrySlug: ‘’, error: ‘API_ERROR: Not Found’}

  4. type: “ENTRY_PERSIST_FAILURE”

  5. [[Prototype]]: Object

just confused. I updated my netlifycms and still doesn’t work

Are you on an organization account? Your account needs to grant access to your Netlify CMS instance:

I made an overview of all different types of api errors, which you can find here:

1 Like

Thank you! this is very helpful. I had to add the specific branch name in my admin config and updated all my packages and force netlify to use my version of node. Thanks again

When creating a new post/page, I get the following error message:

API_ERROR: tree.path contains a malformed path component

Here is my config.yml file

# using git as backend store
backend:
  name: git-gateway
  branch: master
publish_mode: editorial_workflow
media_folder: "/static/media" # Folder where user uploaded files should go
public_folder: "/media"
site_url: https://joelgie.com
editor:
  preview: true
locale: 'fr'

# Allow local visit
# You need to run at the root of the project `npx netlify-cms-proxy-server`
local_backend: true

# i18n https://www.netlifycms.org/docs/beta-features/#i18n-support
i18n:
  structure: multiple_folders
  locales: [ en, fr ]
  default_locale: en

collections:
  - name: "post" # Used in routes, e.g., /admin/collections/blog
    label: "Post" # Used in the UI
    folder: "content/post" # The path to the folder where the documents are stored
    create: true # Allow users to create new documents in this collection
    slug: "{{day}}-{{month}}-{{year}}{{slug}}" # Filename template, e.g., DD-MM-YYYY-title.md
    nested:
      depth: 100 
    path: "{{filename}}/index"  
    fields: # The fields for each document, usually in front matter
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Publish Date", name: "date", widget: "datetime"}
      - {label: "Categories", name: "categories", widget: "list"}
      - {label: "Body", name: "body", widget: "markdown"}

  - name: "page" # Used in routes, e.g., /admin/collections/pages
    label: "Pages" # Used in the UI
    folder: "content/page" # The path to the folder where the documents are stored
    create: true # Allow users to create new documents in this collection
    slug: "{{slug}}" # Filename template, e.g., title.md
    nested:
      depth: 100 
    path: "{{filename}}/index" 
    fields: # The fields for each document, usually in front matter
      - {label: "Layout", name: "layout", widget: "hidden", default: "blog"}
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Publish Date", name: "date", widget: "datetime"}
      - {label: "Body", name: "body", widget: "markdown"}

Please reach out to the current maintaners for help: Decap CMS | Open-Source Content Management System