Skip to content

Dealing with ENOTFOUND discord.com #10554

Open
@Alynva

Description

Which package is this bug report for?

discord.js

Issue description

I started to get the "ENOTFOUND" error while booting my machine, as sometimes it doesn't connect to the network before the script runs, or even my machine boots before my router, or before my ISP restore their services after a blackout. I keep seeing people on Discord saying that its not a djs problem, and I kinda get it, since I need to resolve the network issue to anything that requires network to work properly. But you aren't approaching this problem correctly, because the problem is that djs doesn't recover from "ENOTFOUND" even after the connection is reestablished, so I think that yes, this is a djs problem that djs need to properly address. Do I really need to implement my own login retry logic just to ensure that the bot will work as intended after running it, no matter the network state?

Code sample

No response

Versions

  • discord.js@14.13.0
  • discord-player@6.6.4
  • Nodejs v20.11.1
  • Windows 8.1 Pro

Issue priority

Low (slightly annoying)

Which partials do you have configured?

Not applicable

Which gateway intents are you subscribing to?

Not applicable

I have tested this issue on a development release

No response

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions