Open
Description
For those running into the following error with blank-go example:
./3-invoke.sh
{
"StatusCode": 200,
"FunctionError": "Unhandled",
"ExecutedVersion": "$LATEST"
}
{"errorType":"Runtime.InvalidEntrypoint","errorMessage":"RequestId: 6932893d-a61b-4ff5-98b4-64758a8311d1 Error: fork/exec /var/task/bootstrap: exec format error"}
If you're on an amd64/aarch64 machine like an M1+ Mac, make the following change to the invoker script:
- GOOS=linux go build -tags lambda.norpc -o bootstrap main.go
+ GOARCH=amd64 GOOS=linux go build -tags lambda.norpc -o bootstrap main.go
If this worked for you, consider giving some karma to Dominic O'Connor on StackOverflow.
Metadata
Metadata
Assignees
Labels
No labels