mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(HTTP Request Node): Fix typos in JSON validation error message (no-changelog) (#11197)
Co-authored-by: Jonathan Bennetts <jonathan.bennetts@gmail.com>
This commit is contained in:
committed by
GitHub
parent
eb2d1ca357
commit
9431e3029c
@@ -340,7 +340,7 @@ export class HttpRequestV3 implements INodeType {
|
||||
} catch {
|
||||
throw new NodeOperationError(
|
||||
this.getNode(),
|
||||
'JSON parameter need to be an valid JSON',
|
||||
'JSON parameter needs to be valid JSON',
|
||||
{
|
||||
itemIndex,
|
||||
},
|
||||
@@ -404,13 +404,9 @@ export class HttpRequestV3 implements INodeType {
|
||||
try {
|
||||
JSON.parse(jsonQueryParameter);
|
||||
} catch {
|
||||
throw new NodeOperationError(
|
||||
this.getNode(),
|
||||
'JSON parameter need to be an valid JSON',
|
||||
{
|
||||
itemIndex,
|
||||
},
|
||||
);
|
||||
throw new NodeOperationError(this.getNode(), 'JSON parameter needs to be valid JSON', {
|
||||
itemIndex,
|
||||
});
|
||||
}
|
||||
|
||||
requestOptions.qs = jsonParse(jsonQueryParameter);
|
||||
@@ -430,13 +426,9 @@ export class HttpRequestV3 implements INodeType {
|
||||
try {
|
||||
JSON.parse(jsonHeadersParameter);
|
||||
} catch {
|
||||
throw new NodeOperationError(
|
||||
this.getNode(),
|
||||
'JSON parameter need to be an valid JSON',
|
||||
{
|
||||
itemIndex,
|
||||
},
|
||||
);
|
||||
throw new NodeOperationError(this.getNode(), 'JSON parameter needs to be valid JSON', {
|
||||
itemIndex,
|
||||
});
|
||||
}
|
||||
|
||||
additionalHeaders = jsonParse(jsonHeadersParameter);
|
||||
|
||||
Reference in New Issue
Block a user