Hey, I am new to this topic and even this whole niche of computer stuff and i am currently trying to follow a youtube video to create an simple ai youtube video creator but my first problem is that when i try to connect my n8n, that i locally hostet, first everything works fine i got the client id and client secret connected and i have my n8n email connected as an test user in my google cloud console but here my problem begins… when i clickon sign in with google and want to log in with the account the first thing that pops up is ‘‘Google has not reviewed this app’’ then i click next then i have to accept 3 things and after i click next the page reloads and now says ''website is not available
localhost has lost connection
try following things
check connection
check proxy and firewall
but i already deactivated my firewall
would be so nice if someone could help me and again sorry fpr my bad english^^
what does your redirect url look like?
Hey thanks for the quick answer… Mainly i am trying to copy this video https://www.youtube.com/watch?v=ivty6t0lUkQ&t=5s
but for the specific problem i searched for this video
i dont know i they are even helpful or not
(i hope i did not leak my ip or something^^)
So your redirect url on the credentials page looks like
http://localhost:5678/rest/oauth2-credential/callback
and this is what you used when you configured the OAuth app in Google Cloud Console, right?
Is this how you access your n8n?
http://localhost:5678/
No i acces n8n through
because when i tried to launch it with :5678 it wouldnt launch and the guy from another video said if that happens try :5680
This is why the redirect is not working, if you are using 5680, then you need to be using the same port in the redirect url. Which port does your credentials page say the redirect url should have?
I acces n8n through localhost:5680 but in the google cloud console i used localhost:5678/rest/oauth2-credential/callback
is this why it wont work?
because someone said that if 5678 isnt working you should try 5680 and that worked for me
Yes, basically what redirect url does within the process of OAuth is when Google verifies that you are actually you, it redirects you back to the application and uses the redirect url. If this url doesn’t redirect you back to the application (this includes both the host and the port), this is where the issue is coming from.
This sounds like a random tip ![]()
If port 5678 doesn’t work, I would rather investigate why (most likely because this port is already used, which could mean a second n8n instance running).
Omg thank you, you really saved my day xd
Did it work?
So first of all yes i have 2 n8n running but that is beacuse first i run the 5678 and it wont work and after that i run the 5680 and it works and yeah it would be nice if it works now but i changed the link in google console cloud to 5680 but now when i want so sign in with google it says
Access blocked: This app's request is invalid
You can't sign in because this app sent an invalid request. Try again later or contact the developer. More information about this error.
If you are the developer of this app, see the error details for more information.
Error 400: redirect_uri_mismatch
(there may be some errors because of google translate)
I think I’ve asked before, but how does your credentials page look like? Primarily the part with the redirect URL? Does URL in there match to what you have provided to OAuth app in google cloud console?
what credentials page do you mean? the one on n8n where i connect google sheets or the one on google console cloud where i have to add the link?
The one in n8n when you configure google sheets with client id and secret id (don’t tell me the IDs, I am only interested which URL you see there for redirect URL) and whether it is the same as what you have typed/pasted in google cloud platform.
the url i see there is with 5678 but i dont kow why because i am hosting with 5680
Ok, this explain why it isn’t working.
What you need to do is pass the WEBHOOK_URL environment variable to n8n, when you start it.
How do you run n8n? In Docker or via npm? If compose, share the docker compose file, if npm, please share the command.
i am launching it via docker and the file is through the image n8nion/n8n dont know if this is what you were asking if not please explain how i can give more information to you