You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Do you want to request a feature or report a bug?
Bug
- What is the current behavior?
Netlify CMS queries the Github API for files to add to its Collections. If any of those requests is above 1mb, Netlify CMS fails to render any of the other files.
- If the current behavior is a bug, please provide the steps to reproduce.
Create a Markdown file above 1mb and notice how the Netlify CMS won't render any of the other files in a collection.
- What is the expected behavior?
In my opinion, Netlify CMS should be able to catch this error, display the file in a disabled state, and let the end user know why it was not able to load.
Looks like GitHub is throwing a 403 and returning this error:
{
"message": "This API returns blobs up to 1 MB in size. The requested blob is too large to fetch via the API, but you can use the Git Data API to request blobs up to 100 MB in size.",
"errors": [
{
"resource": "Blob",
"field": "data",
"code": "too_large"
}
],
"documentation_url": "https://developer.github.com/v3/repos/contents/#get-contents"
}
Tracing the load failure, it looks like it is failing to show any entries for the same reason that I outlined in #929 (comment).
In my opinion, Netlify CMS should be able to catch this error, display the file in a disabled state, and let the end user know why it was not able to load.
I think just hiding or disabling the single file is a good first step ("patch"). Later, we'll probably want to load files via the alternative API so that we can support files up to 100 MB.
- Do you want to request a feature or report a bug?
Bug
- What is the current behavior?
Netlify CMS queries the Github API for files to add to its Collections. If any of those requests is above 1mb, Netlify CMS fails to render any of the other files.
- If the current behavior is a bug, please provide the steps to reproduce.
Create a Markdown file above 1mb and notice how the Netlify CMS won't render any of the other files in a collection.
- What is the expected behavior?
In my opinion, Netlify CMS should be able to catch this error, display the file in a
disabled
state, and let the end user know why it was not able to load.Note
The reason Netlify CMS cannot query files above 1mb is a Github API limitation. More info: https://developer.github.com/v3/repos/contents/#get-contents
The text was updated successfully, but these errors were encountered: