Skip to content

Commit

Permalink
fix: dup
Browse files Browse the repository at this point in the history
  • Loading branch information
loks0n committed Oct 31, 2024
1 parent 6ae73ed commit 2d48982
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions app/http.php
Original file line number Diff line number Diff line change
Expand Up @@ -1308,19 +1308,6 @@ function (string $runtimeId, ?string $payload, string $path, string $method, mix
throw new Exception('Internal curl error has occurred within the executor! Error Number: ' . $executionResponse['errNo'], 500);
}

// Error occured
if ($executionResponse['errNo'] !== 0) {
// Intended timeout error for v2 functions
if ($executionResponse['errNo'] === 110 && $version === 'v2') {
throw new Exception($executionResponse['error'], 400);
}

$log->addExtra('error', $executionResponse['error']);
$log->addTag('hostname', $hostname);

throw new Exception('Internal curl errors has occurred within the executor! Error Number: ' . $executionResponse['errNo'], 500);
}

// Successful execution
['statusCode' => $statusCode, 'body' => $body, 'logs' => $logs, 'errors' => $errors, 'headers' => $headers] = $executionResponse;

Expand Down

0 comments on commit 2d48982

Please sign in to comment.