POST requests don't work

I always get this error, people says it has to do with the dns resolving
(node:11557) UnhandledPromiseRejectionWarning: Error: getaddrinfo ENOTFOUND

at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)

(node:11557) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

(node:11557) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Hi @pacucci!

The warnings you received show up because there’s some code in the discord.js library that needs to be updated to properly handle javascript promise rejections. So the good news is, they’re not evidence of an immediate problem on their own. But we are still happy to take a look.

So we can investigate further, would you mind sharing the name of your project where this is happening?