You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case this helps anyone else using this in conjunction with axios-retry requires resetting the headers before re-signing.
I've added this after I add the aws4 interceptor.
this.$axios.interceptors.request.use((config) => {
// Need to remove old signing headers if this is a retry
if ((config["axios-retry"] as any)?.retryCount > 0) {
logger.info(`Cleaning headers from previous request`);
for (const key of Object.keys(config.headers).filter((k) => k.startsWith("X-Amz"))) {
delete config.headers[key];
}
delete config.headers["Authorization"];
}
return config;
});
The text was updated successfully, but these errors were encountered:
In case this helps anyone else using this in conjunction with
axios-retry
requires resetting the headers before re-signing.I've added this after I add the aws4 interceptor.
The text was updated successfully, but these errors were encountered: