n8n-io/n8n · error

Redirect from ${new URL(input.url).hostname} to ${new URL(ta

Error message

Redirect from ${new URL(input.url).hostname} to ${new URL(targetUrl).hostname} is not allowed. Skip this URL and try a different research strategy — retrying the same URL will not help.

What it means

Error "Redirect from ${new URL(input.url).hostname} to ${new URL(targetUrl).hostname} is not allowed. Skip this URL and try a different research strategy — retrying the same URL will not help." thrown in n8n-io/n8n.

Source

Thrown at packages/@n8n/instance-ai/src/tools/research.tool.ts:232

			};
		}
	}

	// ── Execute fetch ──────────────────────────────────────────────

	const authorizeUrl = async (targetUrl: string) => {
		const redirectCheck = checkDomainAccess({
			url: targetUrl,
			tracker: context.domainAccessTracker,
			permissionMode: context.permissions?.fetchUrl,
			runId: context.runId,
		});
		if (redirectCheck.allowed) return;
		if (redirectCheck.blocked) {
			throw new Error(`Access to ${new URL(targetUrl).hostname} is blocked by admin.`);
		}
		if (await isSameRegistrableDomainOverHttps(input.url, targetUrl)) return;
		throw new Error(
			`Redirect from ${new URL(input.url).hostname} to ${new URL(targetUrl).hostname} is not allowed. ` +
				'Skip this URL and try a different research strategy — retrying the same URL will not help.',
		);
	};

	const result = await context.webResearchService.fetchUrl(input.url, {
		maxContentLength: input.maxContentLength ?? undefined,
		authorizeUrl,
		abortSignal: ctx.abortSignal,
	});
	result.content = wrapUntrustedData(sanitizeWebContent(result.content), result.finalUrl);
	return result;
}

// ── Tool factory ────────────────────────────────────────────────────────────

export function createResearchTool(context: InstanceAiContext) {
	return new Tool('research')

View on GitHub (pinned to 5ac6606e81)

When it happens

Trigger: Thrown at packages/@n8n/instance-ai/src/tools/research.tool.ts:232 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of n8n-io/n8n@5ac6606e81 (2026-08-12). Data as JSON: /api/errors/7e78342cde5a9144. Report an issue: GitHub.