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
aea7
June 30, 2020, 10:13am
2
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:
opened 04:31PM - 29 Aug 18 UTC
closed 08:11PM - 28 Aug 19 UTC
**Describe the bug**
Logging in doesn't work.
If i klick on the "Login with G… itLab" button I get asked for the GitLab credentials and after that i get redirected to the page an a error occurs: "Not Found" shows up. (I'm not logged in so I'm still hanging on the login screen.
**To Reproduce**
Setting up a netlify cms instance with GitLab Implicit authentication.
**Expected behavior**
Successfully login, redirect to the Editor/Content/CMS View.
**Screenshots**
Error Screen:
![netlifycms-firefox-error](https://user-images.githubusercontent.com/4549960/44801314-040c1400-abb9-11e8-9cb3-bf4902bfc83f.jpg)
Browser Console Error Log:
```
Error: "Gotrue-js: Failed to parse tokenResponse claims: {"access_token":"c006da9f51f131415bc41ffbd8083137c17aac90f480d701d605bd0c2f24c7f9","token_type":"bearer","state":"2bb47e3d-804e-4444-8a27-5de3793f01ba"}"
valuehttps://identity.netlify.com/v1/netlify-identity-widget.js:1:94536ehttps://identity.netlify.com/v1/netlify-identity-widget.js:1:92597valuehttps://identity.netlify.com/v1/netlify-identity-widget.js:1:89826completeExternalLoginhttps://identity.netlify.com/v1/netlify-identity-widget.js:1:113346bhttps://identity.netlify.com/v1/netlify-identity-widget.js:1:11476nhttps://identity.netlify.com/v1/netlify-identity-widget.js:1:11363shttps://identity.netlify.com/v1/netlify-identity-widget.js:1:80471onloadhttps://identity.netlify.com/v1/netlify-identity-widget.js:1:81292 user.js:153:8
value user.js:153:8
e user.js:37:4
value index.js:147:17
o.completeExternalLogin< store.js:100:2
b mobx.module.js:911:15
n mobx.module.js:902:15
s netlify-identity.js:178:4
u/O.onload netlify-identity.js:217:4
```
**Applicable Versions:**
- Netlify CMS version: ^2.0.0 / 2.0.11
- Git provider: GitLab
- OS: Windows 10
- Browser version: Firefox 61.0.2
**CMS configuration**
```
backend:
name: gitlab
repo: user/repo# Path to your GitLab repository
auth_type: implicit # Required for implicit grant
app_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX # Application ID from your GitLab settings
branch: master # Branch to update (optional; defaults to master)
media_folder: "static/img" # Folder where user uploaded files should go
public_folder: "img"
collections:
- name: "slider" # Used in routes
label: "Slider" # Used in the UI
folder: "data/carousel" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "slider-{{slug}}" # Filename template
fields: # The fields for each document, usually in front matter
- {label: "Weight", name: "weight", widget: "number", default: "0"}
- {label: "Title", name: "title", widget: "string"}
- {label: "Description", name: "description", widget: "string"}
- {label: "Bild", name: "image", widget: "image"}
```
**Additional context**
Works with Chrome: Version 68.0.3440.106
Hope this helps,
Cheers