"Not found" error when trying to log in Netlify CMS

I have an issue similar to the tickets 'Not Found' when trying to login with Netlify Identity and Netlify Identity - After Successful Authentication 'Not Found' Error Experienced. When trying to log in in our Netlify CMS, I see the “Not Found” pop-up over the page.

Looking into the network requests in Chrome, I see that the GET request to https://www.thetreeapp.org/.netlify/git/github/branches/develop returns an error code 404.

Our repository is private and organisation-owned. I changed the repository visibility to public as an experiment. With the public repository, everything works out fine and I am able to log in. When changed back to private, the log in ceases to work. Leaving the repository public is not an option, since the organisation would like to keep the code private.

Our Netlify CMS used to work fine for a long time with our private organisation-owned repository. We haven’t changed any Netlify-related settings recently, so this error is unexpected.

Please help me fix this issue. Let me know if any information is required for further debugging.

Go through these steps:

https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-membership-in-organizations/requesting-organization-approval-for-oauth-apps

2 Likes

Hi @tomrutgers, thanks for your reply! Do I have to be the owner of the organisation/repository to do that? Seems like I don’t have the option to request organisation approval for the Netlify Auth app.

Hi Tom! The error still persists, could you please check my answer above and see what can be done in this case?

You might have to reconnect git gateway after changing your repo from private to public and back:

This issue on github might help as well:

1 Like

Thank you very much Tom! I’ve updated our API token following the steps described in the first link, and now everything works.

1 Like