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.

Synchronisation error with GitHub

  • #8139
    Avatar photo[anonymous]

    Hello to all of you

    I want to move my blog from Netlify to Cloudflare pages, I created the token and repository on GitHub following the steps of the documentation offered on publli for this purpose.

    I configured the Github server in Publii, I did the connection test and everything was ok, so I proceeded to perform the synchronization and apparently it was loading the files (about 2840), at the end of the loading process I got an error, I don’t remember exactly what it said.

    The final line of the deployment-process.log has the following.

    [Tue, 30 Aug 2022 22:05:37 GMT] (i) TRIED AGAIN: (api) => api.gitdata.createTree - undefined
    [Tue, 30 Aug 2022 22:06:01 GMT] (i) TRIED AGAIN FAIL: (api) => api.gitdata.createTree - undefined
    [Tue, 30 Aug 2022 22:06:01 GMT] ERROR: {"code":502,"status":"Bad Gateway","message":"{\n  \"message\": \"Server Error\"\n}\n"}

    Do you have any idea what it could be?

    #8189
    Avatar photo[anonymous]

    Hi,

    I am not sure, but maybe it is due Github API limitations:

    User-to-server requests are limited to 5,000 requests per hour and per authenticated user. All requests from OAuth applications authorized by a user or a personal access token owned by the user, and requests authenticated with any of the user’s authentication credentials, share the same quota of 5,000 requests per hour for that user.

    https://docs.github.com/en/developers/apps/building-github-apps/rate-limits-for-github-apps

    #8325
    Avatar photo[anonymous]

    Thanks for replying, Tomas, I had read about the limitations of the GitHub API and imagined that it could be the cause of the error.

    Thank you