appwrite/appwrite · error · Exception
Failed to create project
Error message
Failed to create project
What it means
Error "Failed to create project" thrown in appwrite/appwrite.
Source
Thrown at src/Appwrite/Platform/Tasks/Screenshot.php:139
$projectId = ID::unique();
// Create project
$project = $client->call(Client::METHOD_POST, '/projects', [
'content-type' => 'application/json',
'x-appwrite-project' => 'console',
'cookie' => $cookieConsole
], [
'projectId' => $projectId,
'region' => 'default',
'name' => $projectName,
'teamId' => $team['body']['$id'],
'description' => 'Demo Project Description',
'url' => 'https://appwrite.io',
]);
if ($project['headers']['status-code'] !== 201) {
Console::error(\json_encode($project));
throw new \Exception("Failed to create project");
}
Console::info("Project created");
$projectId = $project['body']['$id'];
$framework = $template['frameworks'][0];
// Use best specifications to prevent out-of-memory during build
$specifications = Config::getParam('specifications', []);
$specifications = array_keys($specifications);
$specification = \end($specifications);
// Create site
$site = $client->call(Client::METHOD_POST, '/sites', [
'content-type' => 'application/json',
'x-appwrite-project' => $projectId,
'x-appwrite-mode' => 'admin',View on GitHub (pinned to a1d520eea4)
Solutions
- Check the error JSON logged above for the API response (status code and message) to see why project creation was rejected.
- Verify the Appwrite server is reachable at the configured endpoint and that your console session is still valid; re-run the task to get a fresh session.
- Confirm the organization was created successfully in the previous step, since the project requires a valid teamId.
When it happens
Trigger: Thrown at src/Appwrite/Platform/Tasks/Screenshot.php:139 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of appwrite/appwrite@a1d520eea4 (2026-08-18).
Data as JSON: /api/errors/0aac465e09262715.
Report an issue: GitHub.