Issue with Youtube Api credentials on self-hosted n8n on localhost

Describe the problem/error/question

Using self-hosted N8N on my home local network i am unable to create Youtube API credentials.

What is the error message (if any)?

The main issue is that i am unable to add new credentials for youtube api.

Please share your workflow

I have n8n deployed on my Raspberry Pi via NPM. On my local network n8n has access by 192.168…:5678 IP (not via localhost)

It works properly, tried to create RSS news with posting to Telegram and everything is ok.

However, i need to create new credentials from Youtube API.

I have created Oauth Client on Google Console, added Test External user (the same as owner). Received the Client ID and Client Secret. (Youtube API 3 enabled).

For some reason the OAuth Redirect URL on N8N is not possible to change and it is related to n8n cloud solution. I have watched many videos, and n8n official videos, and the OAuth Redirect URL contains localhost:5678 link. I have tried to insert it to the Goolge console localhost:5678/rest/oauth2-credential/callback and the same error occures.

I have tried to change the web_hook on .env but the same is going.
Also. On my Raspberry Pi is installed Nginx with autostart on Ip address (not localhost using), however, google cloud does not allow to insert any IP addresses, only “localhost” conatining url.

Unfortunately i do not have my own domain names and dedicated server =(

Please be kind to advise how to solve this issue?

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Looks like the similar case Connecting to Google on localhost

  • n8n version:
  • Latest 1.78
  • Database (default: SQLite):
  • By default
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Via NPM
  • Operating system:
  • Raspberry Pi

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