Skip to content

ENOTFOUND is a real error; lets document it! #26484

Closed
@bterlson

Description

@bterlson
  • Version: 11.x
  • Platform: Any
  • Subsystem: Net

As best as I can tell, network failure often surfaces to the Node user with an error ENOTFOUND. In attempting to determine under what conditions this error is thrown, we found that the ENOTFOUND error is not documented.

@addaleax pointed out that there's a FIXME comment from @bnoordhuis suggesting this error is temporary, but I bet ENOTFOUND is pretty baked and changing it would cause significant friction.

So I'd like to propose the following:

  • Remove the FIXME comment
  • Document ENOTFOUND under "Common System Errors". It's not an actual system error but it appears like one so users might expect to find it there anyway.
  • @Fishrock123 also suggested putting the actual error code on the error object somewhere, which would be very handy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions