Skip to content

Commit

Permalink
fix: Fix task runner default n8n uri and auth endpoint (no-changelog) (
Browse files Browse the repository at this point in the history
  • Loading branch information
tomi authored Oct 7, 2024
1 parent c74bc10 commit 42c0733
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@n8n/task-runner/src/authenticator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion packages/@n8n/task-runner/src/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 42c0733

Please sign in to comment.