Skip to content

EAI_AGAIN Error Not Thrown on getaddrinfo Failure #3951

@paucabuti

Description

@paucabuti

Bug Description

In undici versions @7.1.0, and @7.0.0 the EAI_AGAIN error is no longer thrown when the getaddrinfo syscall fails. Instead, the request returns an object with { opaque: null }, which is unexpected behavior.
Additionally, this issue might be related to fix: response error interceptor #3930.

Reproducible By

  1. Attempt to make a request to a hostname that triggers a getaddrinfo failure.
  2. Observe that instead of throwing an EAI_AGAIN error, the response contains { opaque: null }.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions