Problem/Motivation
As noted in #3304477: Caller reference is not unique per request when for example triggering a bulk update we sometimes receive this error.
Error executing "CreateInvalidation" on "https://cloudfrontxxx/2020-05-31/distribution/.../invalidation"; AWS HTTP error: Client error: `POST https://cloudfront.amazonaws.com/2020-05-31/distribution/.../invalidation` resulted in a `400 Bad Request` response: <?xml version="1.0"?> <ErrorResponse xmlns="http://cloudfrontxxx/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. - <?xml version="1.0"?> <ErrorResponse xmlns="http://cloudfront.amazonaws.com/doc/2020-05-31/"><Error><Type>Sender</Type><Code>InvalidArgument</Code><Message>Your request contains a caller reference that was used for a previous invalidation batch for the same distribution.</Message></Error><RequestId>...</RequestId></ErrorResponse>
Proposed resolution
Change the caller reference to be more accurate. Like hash of paths to invalidate + timestamp.
Issue fork cloudfront_cache_path_invalidate-3444498
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
carsoncho commentedComment #4
prashant mishra commentedComment #5
prashant mishra commented