# Localhost (http://localhost:5678/) error when using e.g. Slack or Gmail "Send and wait. for response" nodes

**URL:** <https://community.n8n.io/t/localhost-http-localhost-5678-error-when-using-e-g-slack-or-gmail-send-and-wait-for-response-nodes/234166>\
**Category:** Questions\
**Created:** [December 10, 2025, 6:21pm UTC](https://community.n8n.io/t/localhost-http-localhost-5678-error-when-using-e-g-slack-or-gmail-send-and-wait-for-response-nodes/234166 "2025-12-10T18:21:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simpson007](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Simpson007](https://community.n8n.io/u/Simpson007)\
**Post date:** [December 10, 2025, 6:21pm UTC](https://community.n8n.io/t/localhost-http-localhost-5678-error-when-using-e-g-slack-or-gmail-send-and-wait-for-response-nodes/234166/1 "2025-12-10T18:21:30Z")

</div>

**Title:** Localhost error ([http://localhost:5678/](http://localhost:5678/)) when using e.g. Slack or Gmail “Send and wait for response” nodes

**n8n Version:** 1.12.4

**Instance Type:** Self-hosted (Docker with Hostinger)

**Problem:**

Gmail “Send Message and Wait for Response” node generates approval links pointing to `http://localhost:5678` instead of my configured domain, causing “connection refused” errors when recipients click the links.

**Environment Variables in docker-compose.yml:**

yaml

````auto
- N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
- N8N_PROTOCOL=https
- WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/
- N8N_EDITOR_BASE_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/
- N8N_PROXY_HOPS=1
```

````

**Verified inside container via:**

bash

```auto
docker exec <container_name> printenv | grep -E "N8N_HOST|WEBHOOK_URL|N8N_PROTOCOL|EDITOR|PROXY"

```

Output confirms variables resolve correctly to `subdomain.mydomain.com`

**What works:**

- Regular Webhook nodes show correct URL (both Test and Production)

- Accessing n8n via `subdomain.mydomain.com works` fine

**What doesn’t work:**

- e.g. Gmail “Send and Wait for Response” approval links still use `localhost:5678`

 ![Screenshot 2025-12-10 at 18.14.46](https://europe1.discourse-cdn.com/n8n/original/3X/2/6/268f6f92b8827cdfa4f8befeb7780e743765ca8c.png)

**Setup:**

- Docker Compose

- PostgreSQL database

- Redis queue mode

**Already tried:**

- Cleared browser cache

- Created new webhook nodes

- Restarted containers multiple times

- Restarted VPS

- Added N8N\_PROXY\_HOPS=1

Any help appreciated!!! Unfortunately this issue has not been solved also it was mentioned couple of times in the forum here in older threads.

---

<div class="post-metadata">

**Author:** ![Mookie\_Lian](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mookie_lian/32/100252_2.png) [@Mookie\_Lian](https://community.n8n.io/u/Mookie_Lian)\
**Post date:** [December 10, 2025, 6:34pm UTC](https://community.n8n.io/t/localhost-http-localhost-5678-error-when-using-e-g-slack-or-gmail-send-and-wait-for-response-nodes/234166/2 "2025-12-10T18:34:29Z")

</div>

Check if you added the correct redirect URI for your credentials in Google Console(for Gmail).

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/3/b/3b3f32cb834c9700aed621fb671596cd7081f5ce.png)

The redirect URI is usually as follows:

`https://your-full-address-here/rest/oauth2-credential/callback`

You also have to confirm using the same way for Slack Developer Platform.

---

<div class="post-metadata">

**Author:** ![Simpson007](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Simpson007](https://community.n8n.io/u/Simpson007)\
**Post date:** [December 10, 2025, 7:14pm UTC](https://community.n8n.io/t/localhost-http-localhost-5678-error-when-using-e-g-slack-or-gmail-send-and-wait-for-response-nodes/234166/3 "2025-12-10T19:14:51Z")

</div>

Yes, added it in Google Cloud.

Reconnected Google Tools in n8n and still receive the error….

---

<div class="post-metadata">

**Author:** ![Simpson007](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Simpson007](https://community.n8n.io/u/Simpson007)\
**Post date:** [December 15, 2025, 9:28am UTC](https://community.n8n.io/t/localhost-http-localhost-5678-error-when-using-e-g-slack-or-gmail-send-and-wait-for-response-nodes/234166/4 "2025-12-15T09:28:36Z")

</div>

**Solution found!**

The issue was the queue mode of the n8n instance. It finally works after being downgraded via Hostinger!

Hope this helps other people.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [December 22, 2025, 9:29am UTC](https://community.n8n.io/t/localhost-http-localhost-5678-error-when-using-e-g-slack-or-gmail-send-and-wait-for-response-nodes/234166/5 "2025-12-22T09:29:34Z")

</div>

Closed on December 22, 2025, 9:29am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
