Is your feature request related to a problem? Please describe.
The CMS passes along error messages from the individual backends, resulting in some pretty cryptic notifications. It would be nice to provide some context or instructions on how to deal with these errors, since the different ways to resolve them are often pretty straightforward.
Describe the solution you'd like
The error messages shouldn't disappear without being explicitly dismissed by the user. They should give a clear description as to why they occur, as well a way to resolve them. There is a bunch of different API errors:
API_ERROR: {"message":"404 File Not Found"}
As far as I know there are two scenarios that cause this error:
The collection folder or file property is missing a value (a dedicated file or folder, can't be blank or root). The file or folder should be relative to root (so src/posts for example).
There are subfolders within the collection folder
API_ERROR: Not Found
The media library folder is missing, or the value of the media library property within config.yml isn't correct.
Failed to load entries: API_ERROR: Not Found
Git Gateway is not enabled: Enable Git Gateway from the Netlify Identity settings or refresh the token
There aren't any entries for a given collection. Not sure if we should throw this error at all actually.
Failed to load entry: API_ERROR: Not Found
The collection folder or file property is missing a value (a dedicated file or folder, can't be blank or root). The file or folder should be relative to root (so src/posts for example).
FWIW I just ended up here after getting "API_ERROR: Reference update failed" - same fix. I had a branch called "cms" that I'd created to do all the cms setup in my repo!
Related to #1693
Is your feature request related to a problem? Please describe.
The CMS passes along error messages from the individual backends, resulting in some pretty cryptic notifications. It would be nice to provide some context or instructions on how to deal with these errors, since the different ways to resolve them are often pretty straightforward.
Describe the solution you'd like
The error messages shouldn't disappear without being explicitly dismissed by the user. They should give a clear description as to why they occur, as well a way to resolve them. There is a bunch of different API errors:
As far as I know there are two scenarios that cause this error:
folder
orfile
property is missing a value (a dedicated file or folder, can't be blank or root). The file or folder should be relative to root (sosrc/posts
for example).config.yml
isn't correct.folder
orfile
property is missing a value (a dedicated file or folder, can't be blank or root). The file or folder should be relative to root (sosrc/posts
for example).The org account needs to grant access to your Netlify CMS instance: https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/requesting-organization-approval-for-oauth-apps
You're using the editorial workflow but already have a branch called
cms
. This error is fixed by removing thecms
branch from the repo.Not really an API error but pretty easy to resolve:
config.yml
has git-gateway as a backend on a site that isn't hosted on Netlify