N8n local install with tunnel for web hooks

Been trying to get this working for two days now. I haven’t had uses for web hooks because integrations are really good with other methods in n8n. but man is discord a pain in the ass. I looked at all the documentation, set up tunnel (even tried ngrok and cloudflare too with no luck) Trying to just build a bot with slash commands which means setting up Interactions Endpoint URL in discord. My redirects in oauth section seem to be set correctly, I have created the app and a bot and successfully connected it, but for some reason I cant get the ping/pong response when setting up Interactions Endpoint URL, I always get

`interactions_endpoint_url: The specified interactions endpoint url could not be verified.`

my setup is post method with a respond set to respond to web hook node, which responds with { type: 1 } for the pong, as far as I could tell no auth is needed but it fails no matter what.

any ideas what could be happening?

Hey @wutronic welcome to n8n community!

Try this method for ngrok this worked for me:

@wutronic

  1. Is your local n8n instance publicly accessible via your tunnel?
  2. You need to write explict workflow to acknowledge the PING from discord

yeah, I ran it through cursor to double check its public, it agrees. as far as 2 oh thats interesting, I do have a specific JSON file set up in the response its supposed to accept, but maybe I got that wrong. I will have to dig into that further.

turns out ngrok was working all along, I was just messing up the flow with discord. after going crazy for hours, I thought about checking to see if that was even the problem. turns out webhooks work in other platforms, just not discord, which gets me closer. and thanks for the welcome!

1 Like

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