decaporg / jekyll-decap-cms

A starter template for Jekyll and Decap CMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error displaying images after upload

tinykite opened this issue · comments

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

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