-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aws Lambda Client gives SSL connect error #1138
Comments
Should we close lambda client somehow? |
SSL connection error sounds like an error with your connection. Do you have a reproducer? Is the trailing |
I have no reproducer for this scenario. It comes randomly. public function lambdaCallWithJobId($project_id, $file_name, $job_id,$template)
{
$lambda = new LambdaClient([
'accessKeyId' => env('AWS_ACCESS_KEY_ID'),
'accessKeySecret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
]);
$data = (object) [
'ProjectId' => $project_id,
'PdfName' => $file_name,
"EventType" => "GetScanResult",
"PdfTemplate" => $template,
"TextractJobId" => $job_id
];
$result = $lambda->invoke([
'FunctionName' => 'scanpdf',
'Payload' => json_encode($data)
]);
$resData = $result->getPayload();
$resData = json_decode($resData);
$lambda->curl_close;
return $resData;
} |
Hi, I'm facing an SSL connect error randomly after some time. When I call the lambda function for more than one request.
Could not contact remote server. {"exception":"[object] (AsyncAws\Core\Exception\Http\NetworkException(code: 0): Could not contact remote server. at /opt/bitnami/projects/ERIC/vendor/async-aws/core/src/Response.php:142)
SSL connect error for "https://lambda.eu-central-1.amazonaws.com/2015-03-31/functions/scanpdf/invocations\". at /opt/bitnami/projects/ERIC/vendor/symfony/http-client/Chunk/ErrorChunk.php:53)
The text was updated successfully, but these errors were encountered: