decaporg / jekyll-decap-cms

A starter template for Jekyll and Decap CMS
149 stars 108 forks source link

Error displaying images after upload #24

Closed tinykite closed 6 years ago

tinykite commented 6 years ago

When I try to upload images in the CMS, after using the one-click deploy with Netlify button, I initially get the following error: "Failed to persist media: API_Error"

In the console, the problem is always listed as a 401 GET error, with one of two error messages:

"This endpoint requires a Bearer token"
"Access to endpoint not allowed: this part of Github's API has been restricted"

The images appear to be successfully uploading to the git repo. After the image upload triggers a new deploy of the website, the images also show up in the media gallery on the backend/admin view of the website.

screen shot 2018-04-08 at 5 40 15 pm

erquhart commented 6 years ago

This was fixed in netlify/netlify-cms#1221, released in 1.5.0.