In theory, this happens only when there is at least one nil inside records in processFailedDeliveries:
for i, r := range records {
if *r.ErrorCode != "" {
failedEvents = append(failedEvents, events[i])
}
}
I can hardly believe it there's such a bug in aws-sdk-go, but to gather information regarding the issue, I'd like to handle nil here and emit some logs for our note.
I occasionally see interesting errors like this:
In theory, this happens only when there is at least one
nil
insiderecords
inprocessFailedDeliveries
:I can hardly believe it there's such a bug in aws-sdk-go, but to gather information regarding the issue, I'd like to handle
nil
here and emit some logs for our note.