Skip to content

DescribeAvailablePatches SSM api - incorrect type for the field epoch #2655

Closed as not planned
@svagner

Description

@svagner

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Describe the bug

error while getting available patches","error":"SerializationError: failed decoding JSON RPC response\n\tstatus code: 200, request id: 5ff26977-ddee-4ddf-82cf-c88291a6cac0\ncaused by: unsupported value: <nil> (*int64)

Version of AWS SDK for Go?

v1.36.15

Version of Go (go version)?

go version go1.16.4 linux/amd64

To Reproduce (observed behavior)

	if err := DescribeAvailablePatchesPagesWithContext(ctx, &DescribeAvailablePatchesInput{
		Filters: []*PatchOrchestratorFilter{
			{
				Key: aws.String("PRODUCT"),
				Values: []*string{
					aws.String("AmazonLinux2.0"),
				},
			},
		},
		MaxResults: aws.Int64(50),
	}, func(result *DescribeAvailablePatchesOutput, lastPage bool) bool {
		res = append(res, result.Patches...)
		return !lastPage
	}); err != nil {
		return nil, err
	}

Expected behavior

The method should be finished without error

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.p2This is a standard priority issueservice-apiThis issue is due to a problem in a service API, not the SDK implementation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions