Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

printing wrong Editor URL in the startup log when using WEBHOOK_URL , N8N_EDITOR_BASE_URL #13115

Closed
xmlking opened this issue Feb 7, 2025 · 1 comment · Fixed by #13251
Closed
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@xmlking
Copy link

xmlking commented Feb 7, 2025

Bug Description

I am running n8n in docker compose with OrbStack app which provide DOMAIN and HTTPS for docker compose

my docker compose env:

      - DB_TYPE=postgresdb
      - DB_POSTGRESDB_HOST=postgres
      - DB_POSTGRESDB_PORT=5432
      - DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
      - DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER}
      - DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}
      - NODE_ENV=production
      - N8N_EDITOR_BASE_URL=https://n8n.${COMPOSE_PROJECT_NAME}.orb.local
      - WEBHOOK_URL=https://n8n.${COMPOSE_PROJECT_NAME}.orb.local

Bug: Editor is now accessible via: printing http://localhost:5678/ which is incorrect.

The root cause seams it is using generateBaseUrl instead of getInstanceBaseUrl

the expected print should be https://n8n.agentic.orb.local

Image

const editorUrl = Container.get(UrlService).baseUrl;

To Reproduce

      - DB_TYPE=postgresdb
      - DB_POSTGRESDB_HOST=postgres
      - DB_POSTGRESDB_PORT=5432
      - DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
      - DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER}
      - DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}
      - NODE_ENV=production
      - N8N_EDITOR_BASE_URL=https://n8n.${COMPOSE_PROJECT_NAME}.orb.local
      - WEBHOOK_URL=https://n8n.${COMPOSE_PROJECT_NAME}.orb.local

Expected behavior

the expected print should be https://n8n.agentic.orb.local

Operating System

MacOS

n8n Version

1.77.3

Node.js Version

v23.7.0

Database

PostgreSQL

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Feb 7, 2025

Hey @xmlking,

We have created an internal ticket to look into this which we will be tracking as "GHC-761"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants