Hi all, I’ve followed the guide to connect n8n to QuickBooks but when I click on “connect account” I get ERR_CONNECTION_REFUSED.
My workflow is: “Create New Credential” → copy the OAuth Redirect URL into a new URI in Quickbooks and save it → copy both keys into n8n and set the environment to Sandbox → click on connect my account.
I am running a self-hosted installation on VPS server, in a docker container, no firewall rules are applied at this stage.
What am I doing wrong?
n8n version: 1.31.2
database: postgresdb
Running n8n via Cosmos OS in a dockerised container
OS: Ubuntu 22.04
In order to really make n8n useful you need to connect it to a domain instead of localhost.
localhost is a way of saying “here on this machine/this machine’s ip address”, if you substituted the localhost with the computers local IP you would still be able to access it. You would actually be able to access it that way anywhere on the same network.
But outside of your local network, nothing can get to your n8n instance and localhost operates over http and almost every OAuth2 requires https.
You will also need to change some n8n env variables like N8N_EDITOR_BASE_URL and WEBHOOK_URL to match your full domain with https:// to ensure everything works as expected
n8n is already installed on a domain with a reverse proxy and ssl.
I probably have to change its environment variable.
I give it a try and revert back.
I added the env variables and changed the URI → account connected.