php-examples-for-aws-lambda
php-examples-for-aws-lambda copied to clipboard
No such file or directory in /opt/bootstrap on line 20
Response { "errorMessage": "RequestId: ae39bce3-185d-4011-8edd-251bdb4a6f52 Error: Runtime exited with error: exit status 255", "errorType": "Runtime.ExitError" }
Function Logs START RequestId: ae39bce3-185d-4011-8edd-251bdb4a6f52 Version: $LATEST Warning: require(/opt/vendor/autoload.php): failed to open stream: No such file or directory in /opt/bootstrap on line 20 Fatal error: require(): Failed opening required '/opt/vendor/autoload.php' (include_path='.:/home/ec2-user/environment/php-7-bin/lib/php') in /opt/bootstrap on line 20 END RequestId: ae39bce3-185d-4011-8edd-251bdb4a6f52 REPORT RequestId: ae39bce3-185d-4011-8edd-251bdb4a6f52 Duration: 125.65 ms Billed Duration: 126 ms Memory Size: 128 MB Max Memory Used: 9 MB RequestId: ae39bce3-185d-4011-8edd-251bdb4a6f52 Error: Runtime exited with error: exit status 255 Runtime.ExitError
I also got this error, does anyone help?
had the same issue, to fix it replace all $_ENV for getenv and it will work!
The $_ENV fix was not my issue. I was missing the autoload.php file in my venfor.zip. Make sure you have run php composer.phar install, which generates the autoload.php file, before you zip up the vendor files.