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.

Command icon 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

carsoncho created an issue. See original summary.

carsoncho’s picture

Issue summary: View changes

prashant mishra’s picture

Assigned: Unassigned » prashant mishra
Status: Active » Needs review
prashant mishra’s picture

Version: 3.0.x-dev » 3.0.8
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.