decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.8k stars 3.03k forks source link

Provide context for API error messages #2827

Open tomrutgers opened 4 years ago

tomrutgers commented 4 years ago

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:


API_ERROR: {"message":"404 File Not Found"}

As far as I know there are two scenarios that cause this error:


API_ERROR: Not Found

Failed to load entries: API_ERROR: Not Found
Failed to load entry: API_ERROR: Not Found
Failed to persist entry: API_ERROR: Not Found

Not really an API error but pretty easy to resolve:

Failed to load settings from /.netlify/identity
mattlacey commented 4 years ago

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!