Caller reference is not unique per request

Created on 18 August 2022, almost 2 years ago
Updated 7 September 2023, 10 months ago

Problem/Motivation

We sometimes get the following error:
Your request contains a caller reference that was used for a previous invalidation batch for the same distribution.

purger_cloudfront_xxx: Aws\CloudFront\Exception\CloudFrontException: Error executing "CreateInvalidation" on "https://cloudfrontxxx/invalidation"; AWS HTTP error: Client error: `POST https://cloudfrontxxx/invalidation` resulted in a `400 Bad Request` response: <?xml version="1.0"?> <ErrorResponse xmlns="http://cloudfront.amazonaws.com/doc/2020-05-31/"><Error><Type>Sender</Type>< (truncated...) InvalidArgument (client): Your request contains a caller reference that was used for a previous invalidation batch for the same distribution. [...]

Proposed resolution

Change the caller reference to be more accurate. Like hash of paths to invalidate + timestamp.

πŸ› Bug report
Status

Postponed: needs info

Version

1.2

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany eyilmaz Berlin, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024