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

@@ -1,11 +1,5 @@
import { URL } from 'url';
import { Request, sign } from 'aws4';
import { get } from 'lodash';
import { OptionsWithUri } from 'request';
import { parseString } from 'xml2js';
import {
@@ -20,7 +14,6 @@ import {
IHttpRequestOptions,
JsonObject,
NodeApiError,
NodeOperationError,
} from 'n8n-workflow';
export async function awsApiRequest(
@@ -44,7 +37,7 @@ export async function awsApiRequest(
query,
},
method,
body: JSON.stringify(body),
body,
url: '',
headers,
//region: credentials?.region as string,