-
-
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
Media library images become 404 after a while #787
Comments
Regardless of the token issue, the media library shouldn't be reloading images at any point in a session, we need to ensure the call for media in the GitHub backend only occurs once and that the original set is returned in subsequent calls. |
Still experiencing this with private repos in 1.0.3. Is a fix still in the works? Willing to help out |
The fix for this is going to be #946 - that will introduce thumbnail creation on image upload, and the thumbnail will be committed as metadata, at which point we can begin pulling thumbnails through the API instead of by URL. @owenhoskins started work on that effort but got busy, maybe you can reach out and see about helping move it forward? |
Any updates on this? Having the same issue :( |
I see this issue also after I've just logged in. Then only the newly uploaded images are visible. We have a lot of users of NetlifyCMS and I recommend all of them to use private GitHub repos since it's not very wise to show all the changes to the public including blog posts that are not published yet. I guess it is because of token expiration. I could imagine that - as @erquhart describes - the token expires if the CMS is left open for a few minutes and then doesn't recover from this state even after a new login. Workaround: It seems I can get the images back with a full browser refresh. |
It looks like GitHub raw content URLs are returned with We should be able to re-use the code from the GraphQL API fix here to handle this. The GraphQL fix is in the |
@roganflitton this was fixed in #2817 - can you confirm that you're running 2.10.0 or greater? |
- Do you want to request a feature or report a bug?
bug
- What is the current behavior?
If left open a while, all of the images in the media library show as broken images. This may only affect private repos, and seems linked to token expiration.
- If the current behavior is a bug, please provide the steps to reproduce.
- What is the expected behavior?
Images should not show as broken (404)
- Please mention your CMS, node.js, and operating system version.
CMS 0.7.0
The text was updated successfully, but these errors were encountered: