fix(HTTP Request Node): Handle special characters in pagination expressions + improve hint text (#8576)

Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
Elias Meire
2024-02-12 17:32:27 +01:00
committed by GitHub
parent d38a822b95
commit 3b2078c3ca
11 changed files with 218 additions and 153 deletions

View File

@@ -223,7 +223,7 @@ export class RoutingNode {
returnData.push(...responseData);
} catch (error) {
if (thisArgs !== undefined && thisArgs.continueOnFail()) {
returnData.push({ json: {}, error: error as NodeError });
returnData.push({ json: {}, error: error as NodeApiError });
continue;
}

View File

@@ -24,6 +24,7 @@ export interface NodeOperationErrorOptions {
level?: ReportingOptions['level'];
messageMapping?: { [key: string]: string }; // allows to pass custom mapping for error messages scoped to a node
functionality?: Functionality;
type?: string;
}
interface NodeApiErrorOptions extends NodeOperationErrorOptions {

View File

@@ -8,6 +8,8 @@ import { NodeError } from './abstract/node.error';
export class NodeOperationError extends NodeError {
lineNumber: number | undefined;
type: string | undefined;
constructor(
node: INode,
error: Error | string | JsonObject,
@@ -21,6 +23,7 @@ export class NodeOperationError extends NodeError {
if (options.message) this.message = options.message;
if (options.level) this.level = options.level;
if (options.functionality) this.functionality = options.functionality;
if (options.type) this.type = options.type;
this.description = options.description;
this.context.runIndex = options.runIndex;
this.context.itemIndex = options.itemIndex;