Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Sycning to GitHub generating error

  • #8532
    Avatar photo[anonymous]

    I was able to sync with GitHub just 4 days ago, but I am not getting the below error.

    This morning, it started with telling me that my authentication failed which really surprised me (as I had not changed anything). So I did a bunch of review and even re-issued my GitHub Access token to make sure if was done 100% to match the documentation.

    An error occurred while connecting to the server: E1 {“code”:404,”status”:”Not Found”,”message”:{\”message\”:”\Not Found\”,\”documentation_url\”:\”https://docs.github.com/rest/reference/git#get-a-reference\”|”}

    I can see that https://docs.github.com/rest/reference/git#get-a-reference does not exist (perhaps it should be https://docs.github.com/en/rest/git/refs ?).   But, I am not clear on why my Sync is failing because Publii cannot find a public URL on GitHub.

    Urgent advise would be greatly appreciated since I am trying to update our website to include a newly released publication.

    I am using Publii Version: 0.40.3 (build 15745)

    #8542
    Avatar photo[anonymous]

    I cannot seem to edit my initial response, so attaching screenshots as a Reply to the post.

    DHN_sync_erroring_out

    DHN_sync_erroring_message

    #8547
    Avatar photo[anonymous]

    Found another error when Testing the Connection. I cannot figure out what is happening as I have a second site (setup exactly the same) and it is working well.

    Not_able_to_write_files_Publii

    Below are my permissions in GitHub token

    GitHub_token_settings

    Note: I am the organizer owner & have full control through my GitHub account.

    #8551
    Avatar photo[anonymous]

    I have also turned on the ‘Write packages’ option to see if that will make a difference. Nada 🙁

    Write_packages_publii

    #8554
    Avatar photo[anonymous]

    I went through all the steps again and found something strange. The ReadMe file was no longer in my Repo. It was there 4 days ago when I updated the site, but something happened to remove it (and it was not me doing it manually). It seems to coincide with me upgrading the Publii application!??!?!   I also had a separate problem after the upgrade: https://forum.getpublii.com/topic/publii-site-using-wrong-domain-in-site-urls/

    After generating the ReadMe, I went through all the steps again & the access and Sync worked as it had before.  I will close this thread, but it would be interesting to know if others have had problems with the app upgrades.