trying to connect the google api to my n8n workflow and it requires to connect it using OAuth after configuring the OAuth on my GCP and input the details of the callback link from n8n, the link is not accessible.
What is the error message (if any)?
This site can’t be reached
localhost refused to connect.
ERR_CONNECTION_REFUSED
after running this command, n8n is accessible on my browser but I got some issue with regards connecting to google api which is the Callback link from n8n so I end up to post new topic to ask some help…
Issue
Http://localhost:5678/rest/oauth2-credential/callback is not accessible
when I’m accessing the URL set on N8N_HOST and WEBHOOK_URL its not accessible but when I access it using http://ServerIP:5678 I’m able to access n8n on my browser.
Have you set up anything to tell your machine that the URL you have set should resolve to the IP you are using? This would normally be a DNS record or for something local an entry in your hosts file. You should be able to just set the host and url to the IP as well.
You shouldn’t need the port just the IP and the hostname, Just don’t forget that you have put it there. Once you have it in there you can check to see if it will work with the nslookup command so something like nslookup n8n.automate.link
btw I added a port in hosts file, since when I try to lynx the 192.168.1.142 I access my another application… I also tried to remove it and execute nslook up I receive NXDOMAIN
The port isn’t needed in the hosts file, To be honest I don’t even think it is something hosts files support. When you had the just the IP and n8n.automate.link in there did the nslookup work? Did you also make sure that the file was saved correctly and not saved as something like hosts.txt?
At this point it would probably be quicker to just use the IP of your machine in the environment variables, You did remember to change the hosts file on the right machine as well right? It would need to be changed on the machine you are using the browser on.