You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CloudWatchEvents seem to not match the structure of CodeBuildEvents and when performing json.Unmarshal() throws an error:
json: cannot unmarshal number 60.0 into Go struct field CodeBuildEventAdditionalInformation.timeout-in-minutes of type int64: UnmarshalTypeError
null
It looks like Test Data (with minor changes) was pulled from: AWS Build Notification Docs which may have been correct at the time but what I am observing being returned from CloudWatchEvents is 60.0 not 60
You should be able to recreate with a simple lambda listening to CloudWatchEvents with source: "aws.codebuild"
@whithajess I did come across the same issue, but only fixed it locally (roberth-k@8f0289a) and did not put up a PR at the time. The PR looks good to me.
CloudWatchEvents seem to not match the structure of CodeBuildEvents and when performing
json.Unmarshal()
throws an error:It looks like Test Data (with minor changes) was pulled from: AWS Build Notification Docs which may have been correct at the time but what I am observing being returned from CloudWatchEvents is
60.0
not60
You should be able to recreate with a simple lambda listening to CloudWatchEvents with source:
"aws.codebuild"
This looks like it can be fixed easily by changing the types in https://github.com/aws/aws-lambda-go/blob/master/events/duration.go to
float64
instead ofint64
PR to follow.The text was updated successfully, but these errors were encountered: