Hans Song
03/06/2022, 1:35 AMHans Song
03/06/2022, 1:36 AMvendor.db536111.js:320 Uncaught TypeError: Cannot read properties of undefined (reading 'length')
which seems to be from attempting to access the stacktrace
children: [t.invocation.response.error.stackTrace.length === 0 ...
(i’m looking through the source to see if i can find the origin since the error points to the minified version)manitej
03/06/2022, 1:44 AMHans Song
03/06/2022, 1:47 AM<https://console.serverless-stack.com/last-second/local/functions/>...
manitej
03/06/2022, 1:53 AMHans Song
03/06/2022, 1:55 AMpackage.json
"@serverless-stack/cli": "0.67.0",
"@serverless-stack/resources": "0.67.0",
"aws-cdk-lib": "2.7.0"
i can push up my code and link it here if that will helpHans Song
03/06/2022, 1:57 AMmanitej
03/06/2022, 1:58 AMHans Song
03/06/2022, 2:00 AMHans Song
03/06/2022, 2:01 AMstackTrace
property in the invocationsHans Song
03/06/2022, 2:09 AMmanitej
03/06/2022, 2:13 AMHans Song
03/06/2022, 2:14 AMmanitej
03/06/2022, 2:19 AMFrank
manitej
03/06/2022, 2:21 AMFrank
manitej
03/06/2022, 2:23 AMmap
throwing the errorFrank
props.invocation.response.error.stackTrace
for u?manitej
03/06/2022, 2:26 AMFrank
props.invocation.response.error.stackTrace
is undefined
for @Hans Song?Hans Song
03/06/2022, 2:27 AMmanitej
03/06/2022, 2:29 AMHans Song
03/06/2022, 2:33 AMmanitej
03/06/2022, 2:34 AMmanitej
03/06/2022, 2:35 AMHans Song
03/06/2022, 2:39 AMmanitej
03/06/2022, 2:40 AMHans Song
03/06/2022, 2:41 AMFrank
manitej
03/06/2022, 2:43 AMstacktrace
option is missing? backend related?manitej
03/06/2022, 2:55 AMFrank
Frank
undefined
stack trace? ie.
props.invocation.response.error.stackTrace
Hans Song
03/06/2022, 3:00 AMmanitej
03/06/2022, 3:01 AMgo
doesn’t have a stacktrace option in the response
https://docs.aws.amazon.com/lambda/latest/dg/golang-exceptions.html#go-exceptions-createfunctionFrank
go
runtime?Hans Song
03/06/2022, 3:03 AMHans Song
03/06/2022, 3:03 AMHans Song
03/06/2022, 3:06 AMFrank
Frank
Hans Song
03/06/2022, 3:19 AMFrank
Hans Song
03/06/2022, 3:26 AMHans Song
03/06/2022, 3:27 AM{
"errorMessage": "fork/exec /var/task/handler: exec format error",
"errorType": "PathError"
}
notably no stackTrace
Hans Song
03/06/2022, 3:27 AMmanitej
03/06/2022, 4:42 AMFrank
fork/exec
error above?Hans Song
03/07/2022, 7:50 AMGOARCH
to amd64
Frank
Hans Song
03/07/2022, 8:31 AMapp.setDefaultFunctionProps({
runtime: "go1.x",
environment: {
CGO_ENABLED: "0",
GOOS: "linux",
GOARCH: "amd64",
},
});
Frank