Describe the bug
I'm running a gatsby v2 site hosted on netlify. I'm able to build and deploy the site and I'm able to login to the cms. I get the error "Failed to load entries: API_ERROR: Not Found" when I log in though and none of the collection items show up even though there are markdown files that work on the front end of the site.
To Reproduce
I'm not sure really.
Expected behavior
I login and see all the collection items and can edit them.
Screenshots
Applicable Versions:
CMS configuration
backend:
name: git-gateway
branch: master
media_folder: static/img
public_folder: /img
collections:
Additional context
Of course I immediately solved this after posting this issue!
I had to go to netlify.com -> site settings -> services and then click enable git gateway.
A better error message would be helpful in this case.
Related to https://github.com/netlify/netlify-cms/pull/1695 -- but since that landed in time for 2.1.0 it appears that it did not fix this instance.
We'll probably need to port https://github.com/netlify/netlify-cms/pull/1209 and https://github.com/netlify/netlify-cms/pull/1295 over to GitLab (and BitBucket). Maybe we can just pull it to the top-level implementation.js file.
I'll assign this to myself unless somebody else wants it.
@TylerBarnes where do you see: services? I cannot find the enable git gateway setting
@imcodingideas You can find enable git gateway under settings > identity
app.netlify.com/sites/_your-site-name_/settings/identity
It is written "Netlify鈥檚 Git Gateway service currently supports GitHub and GitLab repositories connected to Netlify for Continuous Deployment. Repositories in Bitbucket are not yet supported by this feature."
Does this mean we cannot use netlify CMS with bitbucket?
@alexislg2 Git gateway allows your users to log in to the CMS with their email address and password instead of a git account of some sort. You can still log in to the CMS with a bitbucket account.
I'm also receiving this error message after logging in to /admin/ with Bitbucket credentials:
Failed to load entries: API_ERROR: Expected an ok response, but received an error status: 404.
I'm getting this error as well. Followed this tutorial
https://www.gatsbyjs.org/docs/sourcing-from-netlify-cms/
with
https://www.netlify.com/docs/authentication-providers/#using-an-authentication-provider
Found this bug issue report and followed the details for "enable git gateway". Still get the error. Not sure what to do now. The "enable git gateway" also has some api key mentioned, but not entirely sure where this is coming from (is it the one that is created in git?)
Thanks
If someone can provide access to a repo and open sign ups in your Netlify Identity settings for a site with this issue, that would allow us to see it first hand.
I did have the same problem. It seems that this happens when the collection is empty, which is a little bit confusing. I published one collection item an the error message was gone! :)
This issue is becoming a bit of a catch all - please reach out in chat or open a new issue with steps to reproduce if you're stuck on this error.
@imcodingideas You can find enable git gateway under settings > identity
app.netlify.com/sites/_your-site-name_/settings/identity
This worked for me - for anyone with the same issue in 2019. I was getting the error:
Failed to load entry: API_ERROR: Not Found
... just by logging in to the Netlify CMS plugin for Gridsome. I had no other config in place, just using the default options provided in the Gridsome guide.
I did have the same problem. It seems that this happens when the collection is empty, which is a little bit confusing. I published one collection item an the error message was gone! :)
This was the case for me as well. Make sure you have something in the collection itself.
Most helpful comment
I did have the same problem. It seems that this happens when the collection is empty, which is a little bit confusing. I published one collection item an the error message was gone! :)