diff --git a/packages/@n8n/task-runner/src/authenticator.ts b/packages/@n8n/task-runner/src/authenticator.ts index 717af58dd2..7edb4cadf6 100644 --- a/packages/@n8n/task-runner/src/authenticator.ts +++ b/packages/@n8n/task-runner/src/authenticator.ts @@ -11,7 +11,7 @@ export type AuthOpts = { */ export async function authenticate(opts: AuthOpts) { try { - const authEndpoint = `http://${opts.n8nUri}/rest/runners/auth`; + const authEndpoint = `http://${opts.n8nUri}/runners/auth`; const response = await fetch(authEndpoint, { method: 'POST', headers: { diff --git a/packages/@n8n/task-runner/src/start.ts b/packages/@n8n/task-runner/src/start.ts index f65b9dd7b8..253e41b9bc 100644 --- a/packages/@n8n/task-runner/src/start.ts +++ b/packages/@n8n/task-runner/src/start.ts @@ -23,7 +23,7 @@ function readAndParseConfig(): Config { } return { - n8nUri: process.env.N8N_RUNNERS_N8N_URI ?? 'localhost:5678', + n8nUri: process.env.N8N_RUNNERS_N8N_URI ?? '127.0.0.1:5679', authToken, grantToken, };