Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected token < in JSON at position 0 #1455

Closed
heyalbert opened this issue Jun 20, 2018 · 4 comments
Closed

Unexpected token < in JSON at position 0 #1455

heyalbert opened this issue Jun 20, 2018 · 4 comments

Comments

@heyalbert
Copy link

heyalbert commented Jun 20, 2018

- Do you want to request a feature or report a bug?
bug

- What is the current behavior?
Error message when trying to log into the admin panel of my netlify website.

Unexpected token < in JSON at position 0

Screenshot showing the bug

- If the current behavior is a bug, please provide the steps to reproduce.
Created a fresh new netlify cms with gatsby using bitbucket.

  1. app.netlify.com -> Identity
  2. Invite users -> Email address
  3. Inbox, clicked on "Accept the invite"
  4. Typed in my new password.
  5. Went through /admin and error message appeared.

- What is the expected behavior?
Login/Signup into the admin panel of my new created netlifiy cms.

@tech4him1
Copy link
Contributor

BitBucket is not yet supported by Netlify CMS. You can follow #234 for updates!

@galvarez421
Copy link

I just had this same issue using GitLab repo + Netlify Identity. I didn't invite a user like the OP. I just created my own test account, got the email to confirm my email address, confirmed, then I was redirected to the login screen and got the same exact JSON error message.

The console error message says there is a 404 GET request error for retrieving https://[mysite].netlify.com/.netlify/git/settings.

The error message only appears if I am logged in as the test user. If I open the /admin/ URL in a fresh incognito window (not logged in), I don't see the message, but after I log in, it'll say I have logged in and nothing happens except it says I'm logged in and there is a button to log out or close the login confirmation modal. If I refresh the page, it'll show the error again.

@galvarez421
Copy link

Sorry, disregard! I had enabled git-gateway via my config file and had enabled Identity in Netlify but had not enabled Git Gateway per the docs (https://www.netlify.com/docs/git-gateway/#getting-started). Sorry about the false alarm!

@dev7ch
Copy link

dev7ch commented Aug 17, 2018

Sovled this issue by regenerating the access token und trigger a redeploy (check drop build cache)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants