fix: Disable errors obfuscation (no-changelog) (#10617)

This commit is contained in:
Michael Kret 2024-08-30 10:59:30 +03:00 committed by GitHub
parent 1e08f444c9
commit 9fa1a9aa99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
320 changed files with 445 additions and 518 deletions

View file

@ -114,7 +114,7 @@ export async function conversationalAgentExecute(
} catch (error) {
throwIfToolSchema(this, error);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message }, pairedItem: { item: itemIndex } });
continue;
}

View file

@ -116,7 +116,7 @@ export async function openAiFunctionsAgentExecute(
returnData.push({ json: response });
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message }, pairedItem: { item: itemIndex } });
continue;
}

View file

@ -93,7 +93,7 @@ export async function planAndExecuteAgentExecute(
returnData.push({ json: response });
} catch (error) {
throwIfToolSchema(this, error);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message }, pairedItem: { item: itemIndex } });
continue;
}

View file

@ -114,7 +114,7 @@ export async function reActAgentAgentExecute(
returnData.push({ json: response });
} catch (error) {
throwIfToolSchema(this, error);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message }, pairedItem: { item: itemIndex } });
continue;
}

View file

@ -142,7 +142,7 @@ export async function sqlAgentAgentExecute(
returnData.push({ json: response });
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message }, pairedItem: { item: i } });
continue;
}

View file

@ -225,7 +225,7 @@ export async function toolsAgentExecute(this: IExecuteFunctions): Promise<INodeE
),
});
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({
json: { error: error.message },
pairedItem: { item: itemIndex },

View file

@ -383,7 +383,7 @@ export class OpenAiAssistant implements INodeType {
returnData.push({ json: response });
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message }, pairedItem: { item: itemIndex } });
continue;
}

View file

@ -580,7 +580,7 @@ export class ChainLlm implements INodeType {
});
});
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message }, pairedItem: { item: itemIndex } });
continue;
}

View file

@ -181,7 +181,7 @@ export class ChainRetrievalQa implements INodeType {
const response = await chain.withConfig(getTracingConfig(this)).invoke({ query });
returnData.push({ json: { response } });
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message }, pairedItem: { item: itemIndex } });
continue;
}

View file

@ -416,7 +416,7 @@ export class ChainSummarizationV2 implements INodeType {
returnData.push({ json: { response } });
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message }, pairedItem: { item: itemIndex } });
continue;
}

View file

@ -294,7 +294,7 @@ export class InformationExtractor implements INodeType {
const output = await chain.invoke(messages);
resultData.push({ json: { output } });
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
resultData.push({ json: { error: error.message }, pairedItem: { item: itemIndex } });
continue;
}

View file

@ -241,7 +241,7 @@ export class SentimentAnalysis implements INodeType {
);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.message }),
{ itemData: { item: i } },

View file

@ -242,7 +242,7 @@ ${fallbackPrompt}`,
});
if (fallback === 'other' && output.fallback) returnData[returnData.length - 1].push(item);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData[0].push({
json: { error: error.message },
pairedItem: { item: itemIdx },

View file

@ -324,7 +324,7 @@ export class Code implements INodeType {
try {
items = await sandbox.runCodeAllItems(options);
} catch (error) {
if (!this.continueOnFail(error)) throw error;
if (!this.continueOnFail()) throw error;
items = [{ json: { error: (error as Error).message } }];
if (options.multiOutput) {
items = [items];

View file

@ -55,7 +55,7 @@ export async function router(this: IExecuteFunctions) {
returnData.push(...responseData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message }, pairedItem: { item: i } });
continue;
}

View file

@ -122,7 +122,6 @@ import {
jsonParse,
ApplicationError,
sleep,
OBFUSCATED_ERROR_MESSAGE,
} from 'n8n-workflow';
import type { Token } from 'oauth-1.0a';
import clientOAuth1 from 'oauth-1.0a';
@ -3628,12 +3627,8 @@ export function getExecuteFunctions(
itemIndex,
),
getExecuteData: () => executeData,
continueOnFail: (error?: Error) => {
const shouldContinue = continueOnFail(node);
if (error && shouldContinue && !(error instanceof ApplicationError)) {
error.message = OBFUSCATED_ERROR_MESSAGE;
}
return shouldContinue;
continueOnFail: () => {
return continueOnFail(node);
},
evaluateExpression: (expression: string, itemIndex: number) => {
return workflow.expression.resolveSimpleParameterValue(

View file

@ -1333,8 +1333,6 @@ export class WorkflowExecute {
} else {
// Report any unhandled and non-wrapped errors to Sentry
toReport = error;
// Set obfuscate to true so that the error would be obfuscated in th UI
error.obfuscate = true;
}
if (toReport) {
ErrorReporterProxy.error(toReport, {

View file

@ -226,10 +226,6 @@ function addItemIndexSuffix(message: string): string {
}
function getErrorMessage(): string {
if ('obfuscate' in props.error && props.error.obfuscate === true) {
return i18n.baseText('nodeErrorView.showMessage.obfuscate');
}
let message = '';
const isSubNodeError =

View file

@ -1135,7 +1135,6 @@
"nodeErrorView.itemIndex": "Item Index",
"nodeErrorView.runIndex": "Run Index",
"nodeErrorView.showMessage.title": "Copied to clipboard",
"nodeErrorView.showMessage.obfuscate": "Internal error",
"nodeErrorView.stack": "Stack",
"nodeErrorView.theErrorCauseIsTooLargeToBeDisplayed": "The error cause is too large to be displayed",
"nodeErrorView.time": "Time",

View file

@ -487,7 +487,7 @@ export class ActionNetwork implements INodeType {
? returnData.push(...(response as IDataObject[]))
: returnData.push(response as IDataObject);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message });
continue;
}

View file

@ -1189,7 +1189,7 @@ export class ActiveCampaign implements INodeType {
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.message }),
{ itemData: { item: i } },

View file

@ -420,7 +420,7 @@ export class Affinity implements INodeType {
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.message }),
{ itemData: { item: i } },

View file

@ -133,7 +133,7 @@ export class AiTransform implements INodeType {
try {
items = (await sandbox.runCodeAllItems()) as INodeExecutionData[];
} catch (error) {
if (!this.continueOnFail(error)) {
if (!this.continueOnFail()) {
set(error, 'node', node);
throw error;
}

View file

@ -653,7 +653,7 @@ export class AirtableV1 implements INodeType {
rows.length = 0;
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message } });
continue;
}
@ -696,7 +696,7 @@ export class AirtableV1 implements INodeType {
rows.length = 0;
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message } });
continue;
}
@ -757,7 +757,7 @@ export class AirtableV1 implements INodeType {
}),
];
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message } });
} else {
throw error;
@ -792,7 +792,7 @@ export class AirtableV1 implements INodeType {
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message } });
continue;
}
@ -880,7 +880,7 @@ export class AirtableV1 implements INodeType {
rows.length = 0;
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message } });
continue;
}

View file

@ -48,7 +48,7 @@ export async function execute(
returnData.push(...executionData);
} catch (error) {
error = processAirtableError(error as NodeApiError, undefined, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message } });
continue;
}

View file

@ -87,7 +87,7 @@ export async function execute(
returnData.push(...executionData);
} catch (error) {
error = processAirtableError(error as NodeApiError, undefined, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { message: error.message, error } });
continue;
}

View file

@ -55,7 +55,7 @@ export async function execute(
returnData.push(...executionData);
} catch (error) {
error = processAirtableError(error as NodeApiError, id, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message } });
continue;
}

View file

@ -91,7 +91,7 @@ export async function execute(
returnData.push(...executionData);
} catch (error) {
error = processAirtableError(error as NodeApiError, id, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message } });
continue;
}

View file

@ -227,7 +227,7 @@ export async function execute(
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { message: error.message, error }, pairedItem: { item: i } });
continue;
} else {

View file

@ -138,7 +138,7 @@ export async function execute(
returnData.push(...executionData);
} catch (error) {
error = processAirtableError(error as NodeApiError, recordId, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { message: error.message, error } });
continue;
}

View file

@ -148,7 +148,7 @@ export async function execute(
returnData.push(...executionData);
} catch (error) {
error = processAirtableError(error as NodeApiError, undefined, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { message: error.message, error } });
continue;
}

View file

@ -261,7 +261,7 @@ export class Amqp implements INodeType {
return [responseData];
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
return [[{ json: { error: error.message }, pairedItems: { item: 0 } }]];
} else {
throw error;

View file

@ -385,7 +385,7 @@ export class ApiTemplateIo implements INodeType {
returnData.push(responseData as IDataObject);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message } });
continue;
}
@ -471,7 +471,7 @@ export class ApiTemplateIo implements INodeType {
}
returnData.push(responseData as IDataObject);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message } });
continue;
}
@ -561,7 +561,7 @@ export class ApiTemplateIo implements INodeType {
}
returnData.push(responseData as IDataObject);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message } });
continue;
}

View file

@ -2467,7 +2467,7 @@ export class Asana implements INodeType {
),
);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message });
continue;
}

View file

@ -306,7 +306,7 @@ export class Autopilot implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const exectionErrorWithMetaData = this.helpers.constructExecutionMetaData(
[{ json: { error: error.message } }],
{ itemData: { item: i } },

View file

@ -204,7 +204,7 @@ export class AwsLambda implements INodeType {
returnData.push(...executionData);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: (error as JsonObject).message }),
{ itemData: { item: i } },

View file

@ -318,7 +318,7 @@ export class AwsSns implements INodeType {
} as IDataObject);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message });
continue;
}

View file

@ -223,7 +223,7 @@ export class AwsCertificateManager implements INodeType {
returnData.push(...executionData);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message } });
continue;
}

View file

@ -277,7 +277,7 @@ export class AwsComprehend implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.message }),
{ itemData: { item: i } },

View file

@ -399,7 +399,7 @@ export class AwsDynamoDB implements INodeType {
returnData.push(...executionData);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.message }),
{ itemData: { item: i } },

View file

@ -451,7 +451,7 @@ export class AwsElb implements INodeType {
),
);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: (error as JsonObject).toString() });
continue;
}

View file

@ -455,7 +455,7 @@ export class AwsRekognition implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message });
continue;
}

View file

@ -893,7 +893,7 @@ export class AwsS3V1 implements INodeType {
}
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.message }),
{ itemData: { item: i } },

View file

@ -1057,7 +1057,7 @@ export class AwsS3V2 implements INodeType {
}
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.message }),
{ itemData: { item: i } },

View file

@ -1285,7 +1285,7 @@ export class AwsSes implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.message }),
{ itemData: { item: i } },

View file

@ -378,7 +378,7 @@ export class AwsSqs implements INodeType {
const result = responseData.SendMessageResponse.SendMessageResult;
returnData.push(result as IDataObject);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.description });
continue;
}

View file

@ -144,7 +144,7 @@ export class AwsTextract implements INodeType {
returnData.push(responseData as unknown as IDataObject);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message });
continue;
}

View file

@ -540,7 +540,7 @@ export class AwsTranscribe implements INodeType {
returnData.push(responseData as IDataObject);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message });
continue;
}

View file

@ -39,7 +39,7 @@ export async function router(this: IExecuteFunctions): Promise<INodeExecutionDat
operationResult.push(...(await companyReport[bamboohr.operation].execute.call(this, i)));
}
} catch (err) {
if (this.continueOnFail(err)) {
if (this.continueOnFail()) {
operationResult.push({ json: this.getInputData(i)[0].json, error: err });
} else {
throw err;

View file

@ -334,7 +334,7 @@ export class Baserow implements INodeType {
returnData.push(...executionData);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message, json: {}, itemIndex: i });
continue;
}

View file

@ -371,7 +371,7 @@ export class Beeminder implements INodeType {
}
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message, json: {}, itemIndex: i });
continue;
}

View file

@ -212,7 +212,7 @@ export class Bitly implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message, json: {}, itemIndex: i });
continue;
}

View file

@ -510,7 +510,7 @@ export class Box implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.message }),
{ itemData: { item: i } },

View file

@ -276,7 +276,7 @@ export class Brandfetch implements INodeType {
responseData.push(...executionData);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
responseData.push({ error: error.message, json: {}, itemIndex: i });
continue;
}

View file

@ -627,7 +627,7 @@ export class Chargebee implements INodeType {
returnData.push(...responseData);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message, json: {}, itemIndex: i });
continue;
}

View file

@ -143,7 +143,7 @@ export class CircleCi implements INodeType {
returnData.push(...(responseData as INodeExecutionData[]));
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message, json: {}, itemIndex: i });
continue;
}

View file

@ -490,7 +490,7 @@ export class CiscoWebex implements INodeType {
returnData.push(...(responseData as INodeExecutionData[]));
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.toString(), json: {}, itemIndex: i });
continue;
}
@ -549,7 +549,7 @@ export class CiscoWebex implements INodeType {
// returnData.push(...responseData.items);
// }
// } catch (error) {
// if (this.continueOnFail(error)) {
// if (this.continueOnFail()) {
// returnData.push({
// error: error.message,
// });

View file

@ -158,7 +158,7 @@ export class Clearbit implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message, json: {} });
continue;
}

View file

@ -1628,7 +1628,7 @@ export class ClickUp implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message, json: {} });
continue;
}

View file

@ -840,7 +840,7 @@ export class Clockify implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message, json: {} });
continue;
}

View file

@ -168,7 +168,7 @@ export class Cloudflare implements INodeType {
),
);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message } });
continue;
}

View file

@ -153,7 +153,7 @@ export class Cockpit implements INodeType {
returnData.push(responseData as IDataObject);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message });
continue;
}

View file

@ -303,7 +303,7 @@ export class Coda implements INodeType {
);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
return [this.helpers.returnJsonArray({ error: error.message })];
}
throw error;
@ -348,7 +348,7 @@ export class Coda implements INodeType {
returnData.push(...executionData);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.messsage }),
{ itemData: { item: i } },
@ -428,7 +428,7 @@ export class Coda implements INodeType {
}
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({
json: { error: error.message },
pairedItem: [{ item: i }],
@ -464,7 +464,7 @@ export class Coda implements INodeType {
await codaApiRequest.call(this, 'DELETE', endpoint, { rowIds: sendData[endpoint] }, qs);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
return [this.helpers.returnJsonArray({ error: error.message })];
}
throw error;
@ -484,7 +484,7 @@ export class Coda implements INodeType {
responseData = await codaApiRequest.call(this, 'POST', endpoint, {});
returnData.push(responseData as INodeExecutionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.messsage }),
{ itemData: { item: i } },
@ -512,7 +512,7 @@ export class Coda implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.messsage }),
{ itemData: { item: i } },
@ -546,7 +546,7 @@ export class Coda implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.messsage }),
{ itemData: { item: i } },
@ -575,7 +575,7 @@ export class Coda implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.messsage }),
{ itemData: { item: i } },
@ -608,7 +608,7 @@ export class Coda implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.messsage }),
{ itemData: { item: i } },
@ -637,7 +637,7 @@ export class Coda implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.messsage }),
{ itemData: { item: i } },
@ -670,7 +670,7 @@ export class Coda implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.messsage }),
{ itemData: { item: i } },
@ -720,7 +720,7 @@ export class Coda implements INodeType {
);
returnData.push(...responseData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.messsage }),
{ itemData: { item: i } },
@ -795,7 +795,7 @@ export class Coda implements INodeType {
}
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({
json: { error: error.message },
pairedItem: [{ item: i }],
@ -823,7 +823,7 @@ export class Coda implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.messsage }),
{ itemData: { item: i } },
@ -852,7 +852,7 @@ export class Coda implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.messsage }),
{ itemData: { item: i } },
@ -885,7 +885,7 @@ export class Coda implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.messsage }),
{ itemData: { item: i } },
@ -929,7 +929,7 @@ export class Coda implements INodeType {
};
await codaApiRequest.call(this, 'PUT', endpoint, body, qs);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
items[i].json = { error: error.message };
continue;
}

View file

@ -135,7 +135,7 @@ export class Code implements INodeType {
try {
items = (await sandbox.runCodeAllItems()) as INodeExecutionData[];
} catch (error) {
if (!this.continueOnFail(error)) {
if (!this.continueOnFail()) {
set(error, 'node', node);
throw error;
}
@ -163,7 +163,7 @@ export class Code implements INodeType {
try {
result = await sandbox.runCodeEachItem();
} catch (error) {
if (!this.continueOnFail(error)) {
if (!this.continueOnFail()) {
set(error, 'node', node);
throw error;
}

View file

@ -477,7 +477,7 @@ export class CoinGecko implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message, json: {} });
continue;
}

View file

@ -438,7 +438,7 @@ export class Compression implements INodeType {
}
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({
json: {
error: error.message,

View file

@ -364,7 +364,7 @@ export class Contentful implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message, json: {} });
continue;
}

View file

@ -485,7 +485,7 @@ export class ConvertKit implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message, json: {} });
continue;
}

View file

@ -619,7 +619,7 @@ export class Copper implements INodeType {
}
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.toString(), json: {} });
continue;
}

View file

@ -376,7 +376,7 @@ export class Cortex implements INodeType {
returnData.push(responseData as IDataObject);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message });
continue;
}

View file

@ -532,7 +532,7 @@ export class Crypto implements INodeType {
returnData.push(newItem);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({
json: {
error: (error as JsonObject).message,

View file

@ -335,7 +335,7 @@ export class CustomerIo implements INodeType {
returnData.push(responseData as unknown as IDataObject);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message });
continue;
}

View file

@ -570,7 +570,7 @@ export class DateTimeV1 implements INodeType {
returnData.push(newItem);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({
json: {
error: error.message,

View file

@ -218,7 +218,7 @@ export class DateTimeV2 implements INodeType {
returnData.push(item);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ json: { error: error.message } });
continue;
}

View file

@ -363,7 +363,7 @@ export class DebugHelper implements INodeType {
break;
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.message }),
{ itemData: { item: i } },

View file

@ -138,7 +138,7 @@ export class DeepL implements INodeType {
}
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = {
json: {} as IDataObject,
error: error.message,

View file

@ -195,7 +195,7 @@ export class Demio implements INodeType {
returnData.push(responseData as IDataObject);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message });
continue;
}

View file

@ -146,7 +146,7 @@ export class Dhl implements INodeType {
}
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.description });
continue;
}

View file

@ -193,7 +193,7 @@ export async function execute(
} catch (error) {
const err = parseDiscordError.call(this, error, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push(...prepareErrorData.call(this, err, i));
continue;
}

View file

@ -48,7 +48,7 @@ export async function execute(
} catch (error) {
const err = parseDiscordError.call(this, error, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push(...prepareErrorData.call(this, err, i));
continue;
}

View file

@ -48,7 +48,7 @@ export async function execute(
} catch (error) {
const err = parseDiscordError.call(this, error, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push(...prepareErrorData.call(this, err, i));
continue;
}

View file

@ -85,7 +85,7 @@ export async function execute(
} catch (error) {
const err = parseDiscordError.call(this, error);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push(...prepareErrorData.call(this, err, 0));
}

View file

@ -140,7 +140,7 @@ export async function execute(
} catch (error) {
const err = parseDiscordError.call(this, error, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push(...prepareErrorData.call(this, err, i));
continue;
}

View file

@ -110,7 +110,7 @@ export async function execute(
} catch (error) {
const err = parseDiscordError.call(this, error);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push(...prepareErrorData.call(this, err, 0));
}

View file

@ -50,7 +50,7 @@ export async function execute(
} catch (error) {
const err = parseDiscordError.call(this, error, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push(...prepareErrorData.call(this, err, i));
continue;
}

View file

@ -50,7 +50,7 @@ export async function execute(
} catch (error) {
const err = parseDiscordError.call(this, error, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push(...prepareErrorData.call(this, err, i));
continue;
}

View file

@ -50,7 +50,7 @@ export async function execute(
} catch (error) {
const err = parseDiscordError.call(this, error, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push(...prepareErrorData.call(this, err, i));
continue;
}

View file

@ -84,7 +84,7 @@ export async function execute(
} catch (error) {
const err = parseDiscordError.call(this, error, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push(...prepareErrorData.call(this, err, i));
continue;
}

View file

@ -111,7 +111,7 @@ export async function execute(
} catch (error) {
const err = parseDiscordError.call(this, error, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push(...prepareErrorData.call(this, err, i));
continue;
}

View file

@ -66,7 +66,7 @@ export async function execute(
} catch (error) {
const err = parseDiscordError.call(this, error, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push(...prepareErrorData.call(this, err, i));
continue;
}

View file

@ -244,7 +244,7 @@ export async function execute(
} catch (error) {
const err = parseDiscordError.call(this, error, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push(...prepareErrorData.call(this, err, i));
continue;
}

View file

@ -153,7 +153,7 @@ export async function execute(this: IExecuteFunctions): Promise<INodeExecutionDa
} catch (error) {
const err = parseDiscordError.call(this, error, i);
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push(...prepareErrorData.call(this, err, i));
continue;
}

View file

@ -444,7 +444,7 @@ export class Discourse implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.message }),
{ itemData: { item: i } },

View file

@ -750,7 +750,7 @@ export class Disqus implements INodeType {
});
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.message }),
{ itemData: { item: i } },

View file

@ -151,7 +151,7 @@ export class Drift implements INodeType {
returnData.push(responseData as IDataObject);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({ error: error.message });
continue;
}

View file

@ -1003,7 +1003,7 @@ export class Dropbox implements INodeType {
returnData.push(...executionData);
}
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
if (resource === 'file' && operation === 'download') {
items[i].json = { error: error.message };
} else {

View file

@ -1310,7 +1310,7 @@ export class EditImage implements INodeType {
}),
);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({
json: {
error: error.message,

View file

@ -734,7 +734,7 @@ export class Egoi implements INodeType {
}
}
} catch (error) {
if (!this.continueOnFail(error)) {
if (!this.continueOnFail()) {
throw error;
} else {
// Return the actual reason as error

View file

@ -523,7 +523,7 @@ export class ElasticSecurity implements INodeType {
);
returnData.push(...executionData);
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
const executionErrorData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.message }),
{ itemData: { item: i } },

View file

@ -227,7 +227,7 @@ export class EmailSendV1 implements INodeType {
},
});
} catch (error) {
if (this.continueOnFail(error)) {
if (this.continueOnFail()) {
returnData.push({
json: {
error: error.message,

Some files were not shown because too many files have changed in this diff Show more