Code Monkey home page Code Monkey logo

Comments (5)

dvejmz avatar dvejmz commented on July 4, 2024 5

I found a fix for this. I created a new git branch called master and pushed it up to the GitHub remote. I then tried to log in again and this time it was successful. I don't know why admin auth via Netlify ID doesn't work when a branch called master doesn't exist in the remote, even though main is set as the the default branch in git as well as the production branch in Netlify. Maybe some older, hardcoded assumption to check for master instead of main? Note that I did not even need to deploy from master to fix the problem: the fact that the GitHub API call the Netlify Hugo app makes finds a master branch as expected is enough for it to work. See screenshot attached of API calls when login is unsuccessful.

2022-02-11T21:36:10,993931938+00:00

from one-click-hugo-cms.

jwsy avatar jwsy commented on July 4, 2024 3

I was able to get this working by adding the branch: main attribute for backend obj at the top of ./site/static/admin/config.yml

backend:
  name: git-gateway
  branch: main # add this line

from one-click-hugo-cms.

maxcell avatar maxcell commented on July 4, 2024 1

Ack! This is a gnarly bug y'all stumbled into! I fully agree with @jwsy's solution for changing the branch to main. I've recently made this change to the HEAD of the project so folks hopefully don't have this happen to them for the future! Thank you so much for reporting it and hope to be able to address any more problems with y'all!

from one-click-hugo-cms.

Zackyist avatar Zackyist commented on July 4, 2024

Thank you so much for the workaround, I was beating my head to the wall with this earlier!

from one-click-hugo-cms.

maxcell avatar maxcell commented on July 4, 2024

Closed with #674

from one-click-hugo-cms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.