perry
December 14, 2020, 6:29pm
22
Hi there! sorry to be slow to reply - there are quite a few API error issues on the Netlify CMS repo.
‘API ERROR’ is a common catch-all error message for a variety of different reasons.
Probably your best bet is to go and see if there is an issue that matches your circumstances - its possible there is a solution, or you are more than welcome to file a new one!
https://github.com/issues?q=is%3Aopen+is%3Aissue+API_ERROR++repo%3Anetlify%2Fnetlify-cms
Hi @perry ,
can i ask what is the main reason here when im uploading a image in netlify cms it shows “Failed to persist media: API_ERROR” but its uploading in our github repo.
Thanks @perry !
Scott
January 20, 2021, 11:33am
24
Could this be because you have a clashing branch name, like in post 2 of this topic?
Scott
January 21, 2021, 10:37am
26
That particular error you’re seeing, it sounds a bit like:
Failed to persist entry: API_ERROR: Reference update failed
You’re using the editorial workflow but already have a branch called cms. This error is fixed by removing the cms branch from the repo.
@Scott @aaronrye12 this issue is already being handled in a separate topic:
Hi @aaronrye12
It’s hard to tell the cause for the error without additional information. If you open your browser developers tools you should be able to see a log message with the error and under the network tab the request to upload the image should also provide some insights.
Regardless, I recommend updating to the latest CMS version which is netlify-cms@2.10.84.
1 Like
Scott
January 21, 2021, 10:42am
28
Thanks for the signposting, Tom!
1 Like
This is super helpful, thank you, but has anyone encountered “Failed to persist entry: API_ERROR: Validation Failed”?
It doesn’t affect all of my posts, only one in the collection. There is another message about it on this board however the resolution of the issue was not posted: Netlify CMS: 'Failed to persist entry: API_ERROR: Validation Failed' - #2 by hrishikesh
Thanks for reaching out! Let’s continue the conversation on the thread you linked (also here ) in order to streamline support!
cobbie
September 25, 2022, 3:04pm
42
Hello, what if the error is simply “Failed to persist entry: API_ERROR” with none of the text in your examples (“Not Found” / “Validation Failed”)?
This pops up when trying to add a first entry to a collection.
@cobbie Have you set the right branch in your config?
cobbie
January 9, 2023, 6:54pm
45
Yup, branch is set correct. Such as the ff right?
backend:
name: git-gateway
branch: master
fool
January 10, 2023, 10:24pm
46
Looks reasonable to me. This of course could only work if we are hosting the site live - to use our hosted git-gateway as the backend.