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
d.js toolkit
d.js toolkit14mo ago
- 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!
space
space14mo ago
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?
Dominik
DominikOP14mo ago
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
space
space14mo ago
Sounds like your setup is quite complicated then. If you create a minimal, reproducible example, I can propably help.
Dominik
DominikOP14mo ago
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
space
space14mo ago
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.
Dominik
DominikOP14mo ago
Well its hard to troubleshoot something that works outside a container and doesnt error
space
space14mo ago
Then look inside
Dominik
DominikOP14mo ago
inside of where?
space
space14mo ago
The container
Want results from more Discord servers?
Add your server