fix(AWS SNS Node): Fix an issue with messages failing to send if they contain certain characters (#5807)

This commit is contained in:
Jon 2023-04-03 11:30:22 +01:00 committed by GitHub
parent e47190b560
commit 32c4eef574
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -302,8 +302,8 @@ export class AwsSns implements INodeType {
const params = [ const params = [
'TopicArn=' + topic, 'TopicArn=' + topic,
'Subject=' + (this.getNodeParameter('subject', i) as string), 'Subject=' + encodeURIComponent(this.getNodeParameter('subject', i) as string),
'Message=' + (this.getNodeParameter('message', i) as string), 'Message=' + encodeURIComponent(this.getNodeParameter('message', i) as string),
]; ];
const responseData = await awsApiRequestSOAP.call( const responseData = await awsApiRequestSOAP.call(