Re-Issuing Git-Gateway token multiple times a day

I am regularly running into Git Gateway Error issues where I am asked to re-issue the Git Gateway token very frequently on many sites. Sometimes multiple times a day.

I have scoured the docs for Netlify and NetlifyCMS, I have also searched through your Community boards but have not found any fixes.

Relevant Information:

  • Repositories are private on GitHub
  • Git Gateway Tokens are issued through Netlify admin (/settings/identity#services)
  • CMS setup according to (see index.html code below)
  • The issue is happening on production URLs and on staging URLs.


  name: git-gateway
  repo: user/repo
  branch: "production"

admin/index.html Markup:

<!doctype html>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Content Manager</title>
  <script src=""></script>
  <!-- Include the script that builds the page and powers Netlify CMS -->
  <script src="^2.10.2/dist/netlify-cms.js"></script>

CMS Error Message:

Git Gateway Error: Please ask your site administrator to reissue the Git Gateway token.

Any help or guidance would be appreciated.




Disclaimer: I did not have to debug this issue ever, but did some quick search maybe it will help:

One thing I noticed is that when people use the config.yml file like you do, they have this configuration:
name: github
repo: user/repo # Path to your GitHub repository
auth_type: implicit # Required for implicit grant
app_id: XXXXX# Application ID from your GitHub settings
branch: master # Branch to update (defaults to master)

I see you are using git-gateway there, maybe you need to try name: github and specify repo and branch etc. Or, if you change to git-gateway, try with just leaving name and branch, what I have is the following and never had any issues:

name: git-gateway
branch: master

Some links:

Hope this helps,

1 Like