fix(AWS Nodes): Handle query string and body properly for AWS related requests (#4039)

This commit is contained in:
Omar Ajoue
2022-09-06 14:33:52 +02:00
committed by GitHub
parent 637863ea02
commit 103f04e4eb
3 changed files with 36 additions and 35 deletions

View File

@@ -1461,19 +1461,19 @@ export async function requestWithAuthentication(
// make the updated property in the credentials
// available to the authenticate method
Object.assign(credentialsDecrypted, data);
requestOptions = await additionalData.credentialsHelper.authenticate(
credentialsDecrypted,
credentialsType,
requestOptions as IHttpRequestOptions,
workflow,
node,
additionalData.timezone,
);
// retry the request
return await proxyRequestToAxios(requestOptions as IDataObject);
}
requestOptions = await additionalData.credentialsHelper.authenticate(
credentialsDecrypted,
credentialsType,
requestOptions as IHttpRequestOptions,
workflow,
node,
additionalData.timezone,
);
}
// retry the request
return await proxyRequestToAxios(requestOptions as IDataObject);
throw error;
} catch (error) {
throw new NodeApiError(this.getNode(), error);
}