Skip to content

Date header breaks AttemptClockSkewHandler #556

@mrsufgi

Description

@mrsufgi

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

Describe the bug
Noticed error logs since May 1st, checked and it didn't happen before.
Error logs:

2020/05/04 08:48:10 ERROR: unable to determine clock skew for Kinesis/PutRecord API response, invalid Date header value, Mon, 4 May 2020 08:48:10 GMT.

As you can tell the date header is Mon, 4 May 2020 which is an invalid date, missing 0 before the 4.

What is the origin of the Date header? might it be a user error? Am I doing something wrong?

func (p *kinesisProducerRepository) Publish(b []byte) error {
	randomPartitionKey := utils.RandomString(PartitionKeyLength)
	input := &kinesis.PutRecordInput{
		Data:         b,
		StreamName:   p.streamName,
		PartitionKey: &randomPartitionKey,
	}

	req := p.kc.PutRecordRequest(input)
	resp, err := req.Send(context.TODO())
	return err
}

Version of AWS SDK for Go?
v0.20.0

Version of Go (go version)?
1.14

To Reproduce (observed behavior)
https://play.golang.org/p/iWcVnT9MEhs

Expected behavior
No errors between 1-9 day of the month

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions