Cloudflare Pages GitHub Reauthorization Failed - Root Cause Found

For Workers & Pages, what is the name of the domain?

linkinbio.maffei.id

What is the error number?

N/A

What is the error message?

Cloudflare Pages build failed and requested GitHub reauthorization. During the reauthorization process, GitHub returned HTTP 404 instead of the authorization page.

What is the issue or error you’re encountering

My Cloudflare Pages project had been working normally until automatic deployments suddenly stopped. Cloudflare Pages requested that I reauthorize my GitHub account. However, every attempt to reconnect redirected me to GitHub, which returned an HTTP 404 page instead of the authorization page. Initially, I assumed this was a Cloudflare issue because Git push continued to work normally and only the Cloudflare Pages integration failed. I uninstalled the Cloudflare Workers & Pages GitHub App, revoked its access from GitHub, and attempted to reconnect it multiple times. I also cleared my browser cache and tried different browsers, but GitHub continued returning HTTP 404 during the authorization process. To isolate the issue, I tested GitHub OAuth with other services (Replit and GitLab GitHub Import). Both also failed, which indicated the problem was not specific to Cloudflare. Eventually, I discovered my GitHub account displayed the following banner: “This account is flagged, and therefore cannot authorize a third party application.” After contacting GitHub Support, they confirmed the account restriction and removed it. Once the restriction was removed, Cloudflare Pages authorization worked immediately without any Cloudflare configuration changes. In my case, the root cause was a GitHub account restriction rather than Cloudflare Pages.

What steps have you taken to resolve the issue?

  • Verified that Git push and repository access were still working.
  • Attempted to reauthorize GitHub from Cloudflare Pages.
  • Uninstalled the Cloudflare Workers & Pages GitHub App.
  • Revoked Cloudflare from GitHub Authorized GitHub Apps.
  • Tried reconnecting the repository multiple times.
  • Cleared browser cache and tested with different browsers.
  • Tested GitHub OAuth with Replit.
  • Tested GitLab’s GitHub Import feature.
  • Contacted GitHub Support.
  • GitHub confirmed my account had been flagged and removed the restriction.

What are the steps to reproduce the issue?

This issue occurred while my GitHub account was under restriction.

  1. Open Cloudflare Pages.
  2. Click Reconnect / Reauthorize GitHub.
  3. Cloudflare redirects to GitHub for authorization.
  4. GitHub returns HTTP 404 instead of the authorization page.
  5. Cloudflare Pages cannot reconnect to the repository, causing automatic deployments to stop.

After GitHub Support removed the account restriction, repeating the exact same steps worked immediately without changing any Cloudflare configuration.