Unable to create a Cloudflare Pages project via API due to an unknown error (code:

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

N/A (The issue is related to creating a project via the API, not a specific domain).

What is the error number?

8000000

What is the error message?

“An unknown error occurred. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH.

What is the issue or error you’re encountering

When attempting to create a Cloudflare Pages project using the API, I receive an error with the code 8000000 and the message: “An unknown error occurred. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH.” The API token is valid and active for my account, and I am providing all required fields in the payload.

What steps have you taken to resolve the issue?

Verified the API token is valid using the /tokens/verify endpoint.

Confirmed the API token has Cloudflare Pages: Edit and Account Settings: Read permissions.

Tested the endpoint with minimal payloads and verbose logging.

Attempted creating a project with different names to rule out conflicts.

Verified the account is in good standing with no billing issues.

What are the steps to reproduce the issue?

Use a valid API token with required permissions.

Send a POST request to https://api.cloudflare.com/client/v4/accounts/{account_id}/pages/projects with the following payload:

{
“name”: “test-project”,
“production_branch”: “main”,
“source”: {
“type”: “local”
}
}

Observe the API response, which returns:
{
“result”: null,
“success”: false,
“errors”: [
{
“code”: 8000000,
“message”: “An unknown error occurred. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH.
}
],
“messages”:
}

Screenshot of the error

Are you still encountering this error? If so, you may want to ping the team on discord Cloudflare Developers

Yes i still face this issue. posted in discord

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.