-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression: Image card with thumbnails not showing after upload #1220
Comments
@buzzlightyear182 Can you try running |
@tech4him1 I did just that, it's still not working. |
This looks similar to the issue @owenhoskins was running into. |
Quoting (Owen Hoskins @owenhoskins Mar 30 05:06):
I'm not sure this is related, since his is a 500 error, and this is a 401. |
I'm able to reproduce. This is a regression in v1.4.0, caused by the private repo-checking code introduced in #994. It does this by getting the repository metadata from GitHub. Git Gateway blocks this request with a 401 ("Access to endpoint not allowed: this part of GitHub's API has been restricted"), because part of the point of Git Gateway is that users are not allowed to get direct repo access. @erquhart @Benaiah What do you think is the best way to fix this? Do we just re-fetch the images (as discussed in #994) for every Git Gateway repo, since it may or may not be private? Obviously this will be much easier after #990 anyway. |
- Do you want to request a feature or report a bug?
Report a bug
- What is the current behavior?
When I upload an image, page needs to be reloaded in order for image block to appear. I can see the photo is uploaded when the button changes back to "Upload New". Deleting an image works fine as expected. Attached is a screenshot of the errors in console. Not sure why API.js is unauthorized as I can login and publish articles already.
- If the current behavior is a bug, please provide the steps to reproduce.
Code is hosted on a public repo. I used
<script src="https://unpkg.com/netlify-cms@^1.4.0/dist/cms.js"></script>
and<link rel="stylesheet" href="https://unpkg.com/netlify-cms@^1.4.0/dist/cms.css" />
in admin/index.htmlUpload image in Media
- What is the expected behavior?
When image is uploaded, thumbnail and file name should appear once done.
- Please mention your CMS, node.js, and operating system version.
Netlify v1.4.0
- Please link or paste your

config.yml
below if applicable.config.yml
The text was updated successfully, but these errors were encountered: