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:

Config.yml:

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

admin/index.html Markup:

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

CMS Error Message:

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

Any help or guidance would be appreciated.

Thanks,

–J

Hi,

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:
backend:
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:

backend:
name: git-gateway
branch: master

Some links:

Hope this helps,
Cheers