From e818a6195867724f5ed40f49aba8f50bd5064f8e Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 30 Jul 2026 03:38:31 +0000 Subject: [PATCH] fix(functions): init executionResponse before sync createExecution Match the domain proxy path in general.php so soft-failed executor errors still return a structured execution instead of reading an undefined \$executionResponse (which can surface as an empty HTTP 500). Co-authored-by: Chirag Aggarwal --- .../Platform/Modules/Functions/Http/Executions/Create.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Executions/Create.php b/src/Appwrite/Platform/Modules/Functions/Http/Executions/Create.php index 6fb5783194..8ed8d695a5 100644 --- a/src/Appwrite/Platform/Modules/Functions/Http/Executions/Create.php +++ b/src/Appwrite/Platform/Modules/Functions/Http/Executions/Create.php @@ -408,6 +408,11 @@ class Create extends Base ]); /** Execute function */ + $executionResponse = [ + 'headers' => [], + 'body' => '', + ]; + try { $version = $function->getAttribute('version', 'v2'); $command = $runtime['startCommand'];