Sign in

Sycning to GitHub generating error

  • This topic has 4 replies, 1 voice, and was last updated 11 months, 3 weeks ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #8532
    Avatar photoandrejverity

    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 photoandrejverity

    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 photoandrejverity

    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 photoandrejverity

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

    Write_packages_publii

    #8554
    Avatar photoandrejverity

    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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Sycning to GitHub generating error’ is closed to new replies.