mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
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 <chiragaggarwal5k@gmail.com>
This commit is contained in:
1 parent
f4bcada1d6
commit
e818a61958
1 file changed
+5
@@ -408,6 +408,11 @@ class Create extends Base
|
||||
]);
|
||||
|
||||
/** Execute function */
|
||||
$executionResponse = [
|
||||
'headers' => [],
|
||||
'body' => '',
|
||||
];
|
||||
|
||||
try {
|
||||
$version = $function->getAttribute('version', 'v2');
|
||||
$command = $runtime['startCommand'];
|
||||
|
||||
Reference in new issue
Block a user