edbrdi / n8n-nodes-discord

Nodes to trigger workflows from Discord or send interactive messages
MIT License
28 stars 19 forks source link

Discord trigger - Bot didn't receive message from channel #1

Closed waaman closed 1 year ago

waaman commented 1 year ago

Hello,

First of all thank you for providing this node.

i'm testing your node and i'm faced of problem for getting discord's channel to n8n node message. The bot is online in my discord channel, the Discord send works well but i can't receive message from channel.

I saw the webhook part on the Discord Trigger parameter page ans when i go to it: {"code":404,"message":"The requested webhook \"GET 4bb4bcad-c953-4de0-ad06-xxxxxx/webhook\" is not registered.","hint":"The workflow must be active for a production URL to run successfully. You can activate the workflow using the toggle in the top-right of the editor. Note that unlike test URL calls, production URL calls aren't shown on the canvas (only in the executions list)"}

I'm confused so i don't know if this message is relveant.

Have you some hints for me to solve this ?

Regards,

I'm french

edbrdi commented 1 year ago

Hi, are you using the last version and have you configured the base url in the credentials? What do you mean "when I got to it"? Can you provide a screenshot maybe? The discord trigger use a POST webhook internally (that's how the bot start a workflow when a message match what you have set), the URL is registered when you create/update the trigger. It uses the base url and need to be reachable from outside. Don't hesitate to join me on Discord: keras#0724

waaman commented 1 year ago

Thx for your answer.

"[...]It uses the base url and need to be reachable from outside.[...]" I have set same data than n8n API credential that said "success" so i suppose it is ok.

I use n8n docker image and i did "npm update" inside the /root/.n8n/ folder to update packages.

I sent you a discord invite.

waaman commented 1 year ago

Thank you very much for your help on discord.

After a fresh install of n8n docker container and configuration for the POST base url without custom port and through a proxy manager it's working.

Santofer commented 1 year ago

Hello, and thank you for this wonderful node. I have the same problem, n8n just keeps Listening for a trigger event even though everything is set up the right way. Can you please help? Tried reaching out to you via Discord, but can't see to be able to do so, here's mine Enima#0661

edbrdi commented 1 year ago

@Santofer Hello, please open a new issue and add more details (version of the node & n8n, logs when an event is supposed to trigger your workflow, configuration of your trigger, if the trigger is active, bot online, if the webhook url is reachable...).