Integrating ngrok to n8n- docker container

I am getting an err_ngrok_8012 error , can you help me to solve this problem ?

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
1 Like

The issue occurs because ngrok can connect to your local machine trough the tunnel, but can’t access your local service (n8n).

Is your n8n instance accessible from your local machine?
Can you share your docker config? Are you using docker compose to run ngrok as a sidecar container?

We would need more information about your local setup to help out properly.

Hi @Kuti01 Personally i prefer NPM version of n8n if you are using any tunneling process for seamless integration and very basic setup, although it seems like your service i mean n8n is not reaching the ngrok, i think the most common cause here can be that you have not started the tunnel in the right localhost url, like your command for Ngrok server before n8n docker should be:

ngrok http 5678

And so once you have the server running now start that docker container and in the configs i recommend setting up webhook_url as the url you will get from the ngrok client and then after this save the config and start your setup and that should make everything working.

pspsps… If you are just getting started i really recommend trying NPM version of n8n (i personally used that) and it is very easy to setup as docker requires some configs before fully running.