Not sending webhooks in docker
Hey so I recently dockerized my bot to make hosting easier and ever since that none of my webhook requests go through to discord and don't get posted. Is there a port I need to open or anything I am missing?
10 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!You don't need to allow any incoming connections from Discord for this.
Your container just needs to be able to connect itself.
What are you internally observing? Is the promise resolving / rejecting / hanging (debug logs?)?
Can you
curl
the webhook manually yourself?Wasnt talking about incoming I meant outgoing requests. It works without docker but as soon as we start the bot using docker no webhook is being sent outside
The webhook stuff is all encrypted too so I dont think I can curl them either
Sounds like your setup is quite complicated then.
If you create a minimal, reproducible example, I can propably help.
The whole bot is open source I can send you that if youd like
If not ima just make a small test bot for you ig
If your setup is so complicated that you can't reasonable troubleshoot, it's probably a good idea to simplify it down to figure out what's going wrong.
Well its hard to troubleshoot something that works outside a container and doesnt error
Then look inside
inside of where?
The container