artrayd
February 17, 2023, 1:24pm
1
Hello,
I deployed Netlify CMS webste, then changed the GitHub repository name. Update also github branch, inside Netlify settings - but now I’m getting this error:
“Git Gateway Error: Please ask your site administrator to reissue the Git Gateway token.”
Under “Git Gateway” it’s not possible to change the repository, maybe this is the reason it’s not working?
What can be done to fix that issue? Should I create new Nentlify CMS and delete the current one?
SamO
February 17, 2023, 3:06pm
2
hi @artrayd welcome back to the forums! Would you try the solution outlined below to see if it helps?
Thanks for this. I had already reissued my token and relinked my repo as seen elsewhere, and cleared my browser cache, to no avail. But your post had what I needed: My branch is main so substituting that in your example and provided location of site/static/admin/config.yml helped and I’ve been rewarded with a functioning CMS.
opened 05:44PM - 31 Aug 18 UTC
closed 04:49PM - 04 Jun 19 UTC
area: docs
kind: enhancement
area: error-handling
**Describe the bug**
When accessing the administration page at `/admin`, I wa… s prompted to log in. After doing so, I was presented with the same page, but with a "Not Found" message on the top of the page.
Checking the browser console, it turned out that it was a request to `/.netlify/git/github/branches/master?ts=...` that had failed with a 404 error:
```.json
{
"message": "Not Found",
"documentation_url": "https://developer.github.com/v3/repos/branches/#get-branch"
}
```
**To reproduce**
1. Let Netlify create a GitHub repository for you
2. Manually make the repository private, without regenerating the token
3. Attempt to log in to the administration page
**Expected behavior**
It should display a more descriptive error message. In this case, ideally something like:
> Your GitHub authorization token has to be regenerated, perhaps because you have made your repository public or private.
… along with a link to the page where the user can regenerate their token.
**Applicable versions**
- Netlify CMS version: 2.0.10
- Git provider: GitHub
- OS: Windows 10
- Browser version: Firefox 61
artrayd
February 17, 2023, 4:32pm
3
Thank you Samo, I already wanted to delete and re-install NetlifyCMS, but your answered helped.
Insde config.yml I matched the branch with my actual repository name
Disabled and re-enabled Git Gateway and everything worked
1 Like
SamO
February 17, 2023, 6:28pm
4
Awesome happy to hear it. (: