Netlify CMS Failed to load entry: API_ERROR: Not Found

Hello, I’m an SSG enthusiast, I’m now publishing my personal website but with no luck.

My Netlify login at Platform is getting login error some times and at CMS a tooltip appears with “Failed to load entry: API_ERROR: Not Found”.

Chrome Console:

At Web or localhost
netlify-cms-app 2.9.7
bootstrap.js:54 netlify-cms-core 2.12.2
index.js:27 netlify-cms 2.9.7
index.js:6 ajv-errors: Ajv option jsonPointers changed to true
e.exports @ index.js:6
content.min.js:2 [Deprecation] Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See /features/4507242028072960 and web/updates/2019/07/web-components-time-to-upgrade for more details.
(anonymous) @ content.min.js:2
/srv.netlify.com/.netlify/git/github/contents/_singles?ts=1567700808912&ref=master:1 Failed to load resource: the server responded with a status of 404 ()
/srv.netlify.com/.netlify/git/github/contents/.gitattributes?ts=1567700808930&ref=master:1 Failed to load resource: the server responded with a status of 404 ()
:4000/admin/#/collections/single:1 Uncaught (in promise)

My jekyll config:

title: Matheus Rocha Vieira - Programador, Designer e Startupeiro
email: matheusrv@email.com
description: >- # this means to ignore newlines until “baseurl:”
Write an awesome description for your new site here. You can edit this
line in _config.yml.
baseurl: “” # the subpath of your site if applicable, e.g. /blog
url: “https://matheusrv.netlify.com” # the base hostname & protocol for your site, e.g. https://example.com
permalink: /blog/:title
section: true
netlifycms: true
analytics: false
sass:
style: compressed
sass_dir: _sass
compress_html:
clippings: all
defaults:

  • scope:
    path: “” # an empty string here means all files in the project
    type: “posts” # previously post in Jekyll 2.2.
    values:
    layout: “post” # set the correct default template for a post
    section: “post” # set the root section name
    markdown: kramdown
    kramdown:
    auto_ids: false
    collections:
    portfolios:
    output: true
    experiences:
    output: true
    slides:
    output: true
    exclude:
  • README.md
  • LICENSE.txt
  • netlify.toml
  • feed.xml
  • Gemfile
  • Gemfile.lock
  • node_modules
  • vendor/bundle/
  • vendor/cache/
  • vendor/gems/
  • vendor/ruby/

My admin/config.yml :

backend:
  name: git-gateway
  branch: master
media_folder: assets/img/uploads
publish_mode: editorial_workflow
collections:
  -
    name: single
    label: Singles
    folder: _singles
    sort: 'date:desc'
    create: true
    slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
    fields:
      -
        label: Layout
        name: layout
        widget: hidden
        default: single
      -
        label: Title
        name: title
        widget: string
        tagname: h1
      -
        label: 'Layout Grid'
        name: layout_grid
        widget: select
        options:
          -
            label: Default
            value: '1'
          -
            label: Slider
            value: '2'
          -
            label: Video
            value: '3'
          -
            label: Hero
            value: '4'
        default: ["Default"]
      -
        label: 'Galery Type'
        name: galery_type
        widget: select
        options:
          -
            label: Carrosel
            value: carrosel
          -
            label: Masonry
            value: masonry
        default: ["Carrosel"]
      -
        label: Client
        name: client
        widget: string
        required: true
      -
        label: 'Publish Date'
        name: date
        widget: datetime
        format: 'YYYY-MM-DD HH:mm:ss'
        required: true
      -
        label: 'Featured Image'
        name: thumbnail
        widget: image
        default: /uploads/chocolate-dogecoin.jpg
        required: true
      -
        label: Images
        name: images
        widget: image
        default: /uploads/chocolate-dogecoin.jpg
        media_library:
          config:
            multiple: true
        required: true
      -
        label: Categories
        name: categories
        widget: list
        field:
          -
            label: Name
            name: name
            widget: string
          -
            label: Image
            name: image
            widget: image
        required: true
      -
        label: Tags
        name: tags
        widget: list
        default:
          - news
        required: false
      -
        label: 'Intro Paragraph'
        name: intro_paragraph
        widget: markdown
        required: false
      -
        label: Body
        name: body
        widget: markdown
        required: true
  -
    name: post
    label: Posts
    folder: _posts
    sort: 'date:desc'
    create: true
    slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
    fields:
      -
        label: Layout
        name: layout
        widget: hidden
        default: post
      -
        label: Title
        name: title
        widget: string
        tagname: h1
      -
        label: 'Galery Type'
        name: galery_type
        widget: select
        options:
          -
            label: Carrosel
            value: carrosel
          -
            label: Masonry
            value: masonry
        default: ["Carrosel"]
      -
        label: 'Publish Date'
        name: date
        widget: datetime
        format: 'YYYY-MM-DD HH:mm:ss'
      -
        label: 'Featured Image'
        name: thumbnail
        widget: image
        default: /uploads/chocolate-dogecoin.jpg
        required: true
      -
        label: Images
        name: images
        widget: image
        default: /uploads/chocolate-dogecoin.jpg
        media_library:
          config:
            multiple: true
        required: true
      -
        label: Categories
        name: categories
        widget: list
        field:
          -
            label: Name
            name: name
            widget: string
          -
            label: Icon
            name: icon
            widget: select
            options:
              -
                icon: Carrosel
                value: carrosel
              -
                icon: Carrosel
                value: carrosel
        required: true
      -
        label: Tags
        name: tags
        widget: list
        default:
          - news
        required: false
      -
        label: 'Intro Paragraph'
        name: intro_paragraph
        widget: markdown
        required: false
      -
        label: Body
        name: body
        widget: markdown
        required: true
  -
    name: page
    label: Pages
    folder: pages
    sort: 'title:asc'
    create: false
    slug: '{{slug}}'
    fields:
      -
        label: Layout
        name: layout
        widget: hidden
        default: page
      -
        label: Title
        name: title
        widget: string
        tagname: h1
      -
        label: Permalink
        name: permalink
        widget: hidden
      -
        label: Section
        name: section
        widget: hidden
        default: '{{name}}'
      -
        label: 'Featured Image'
        name: thumbnail
        widget: image
        default: /uploads/chocolate-dogecoin.jpg
        required: true
      -
        label: 'Intro Paragraph'
        name: intro_paragraph
        widget: markdown
        required: false
      -
        label: Body
        name: body
        widget: markdown
        required: false

Hi, I’m not able to reproduce that error with your site. Are you still having trouble?

Yes, but after create one content the error disappear.

So it shows the error sometimes if there are no items in the collection, but is anything not working? If you can still create entries and load any entries that do exist, then the only issue is a confusing error message - let me know if that’s a correct assessment.