OAuth Callback URL is localhost:5678

Hey @farhan_Y,

They webhook_url should be http://54.169.122.123 that should sort it out although some services won’t let you use an IP / HTTP so you may need to think about getting a domain if you see any other issues.

Hey @Jon ,

So I need to change my “http://54.169.122.123/” into domain name right?
Then I need to “export WEBHOOK_URL=https://n8n.example.com/” like this right?

Hey @farhan_Y,

In theory using http://54.169.122.123/ should work but it looks like it isn’t set properly, If you ran into issues with an oauth service you could then swap to your domain instead.

Alright
Thank you @Jon ,
I solve by run the server locally by using Remote Desktop Connection.

1 Like

I ran an n8n container from Docker Hub, without realizing I had to set the environment variables during the docker run command. It would have been incredibly helpful to have something in the n8n container logs that indicated setup was incomplete, or have the option to configure this after the fact.

Now I have to recreate my container, so I can set the environment variables.

Hey @trevor,

Welcome to the community :raised_hands:

Using localhost can be a valid option depending on what you are using n8n for but I agree it would be handy to maybe have a prompt when you first login to say the setup may not be complete.

1 Like

True, I didn’t think about that. Thanks for the welcome and the awesome software! :slight_smile:

1 Like

No problem, enjoy working on your automations and interacting with the community.

Hi @Jon

I am facing the same problem,

After entering the credentials, and signin with Google account getting the error

N8n Details :

n8n Self-hosted software & running in the Docker
n8n Version 0.225.2

Tired the above steps

added the variable webhook_url=http://example.workflow.com/ in the docker compose yml file and restarted the n8n, but getting same localhost url in UI

And one more doubt is , In the Google console, do we need to subdomain redirect URL instead of localhost?

Example : in Redirect URL in API & Service google console ?

http://example.workflow.com/rest/oauth2-credential/callback

Please assist me with this.

I found a reliable nocode system to solve this problem.
Install Easypanel on your server (you can do this with no coding on Digital Ocean). That makes it easy to install n8n.
Then use Easypanel to install Authotizer (from https://authorizer.dev).
Once you enter your Google oauth2 ID and key, update your webhook url in the Easypanel environment panel:


This will update the return url so you don’t get a 404.

1 Like

Hey @Asuwini_P,

I suspect you have not correctly set WEBHOOK_URL can you share your compose file with any private values replaced with dummy values so I can take a look?

It is also important to stop the container then start it again after making this change as a restart doesn’t always pick up the changes.

1 Like

After halting the Docker service and stopping Docker itself, I included the variable in the config.v2.json file instead of the Docker Compose YAML file. Following that, upon restarting Docker and its service, and adding the subdomain URL in the Google console, I successfully authenticated my account.

Thank you for your help @Jon

2 Likes

Hey @Asuwini_P,

Perfect so is this all good now?

Yes, Working perfectly @Jon

1 Like

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