{"record":{"id":"baee20b6a209f8b7","repo":"oven-sh/bun","slug":"dnsresolutionfailed","errorCode":"DNSResolutionFailed","errorMessage":"DNSResolutionFailed","messagePattern":"DNSResolutionFailed","errorType":"error_code","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"src/http/error.rs","lineNumber":88,"sourceCode":"    #[error(\"RedirectURLInvalid\")]\n    RedirectURLInvalid,\n    #[error(\"InvalidRedirectURL\")]\n    InvalidRedirectURL,\n    #[error(\"UnexpectedRedirect\")]\n    UnexpectedRedirect,\n    #[error(\"ShortRead\")]\n    ShortRead,\n    #[error(\"WantRead\")]\n    WantRead,\n    #[error(\"WantWrite\")]\n    WantWrite,\n    #[error(\"HTTP3HandshakeFailed\")]\n    HTTP3HandshakeFailed,\n    #[error(\"HTTP3ProtocolError\")]\n    HTTP3ProtocolError,\n    #[error(\"HTTP3HeaderEncodingError\")]\n    HTTP3HeaderEncodingError,\n    #[error(\"DNSResolutionFailed\")]\n    DNSResolutionFailed,\n    #[error(\"HTTP3StreamReset\")]\n    HTTP3StreamReset,\n    #[error(\"HTTP3ContentLengthMismatch\")]\n    HTTP3ContentLengthMismatch,\n    #[error(\"FailedToOpenSocket\")]\n    FailedToOpenSocket,\n    #[error(\"InvalidCRL\")]\n    InvalidCRL,\n    #[error(\"UnsupportedProxyProtocol\")]\n    UnsupportedProxyProtocol,\n    #[error(transparent)]\n    Cert(#[from] CertError),\n    #[error(transparent)]\n    Alloc(#[from] bun_alloc::AllocError),\n    #[error(transparent)]\n    Hpack(#[from] crate::lshpack::HpackError),\n    #[error(transparent)]","sourceCodeStart":70,"sourceCodeEnd":106,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/http/error.rs#L70-L106","documentation":"Sentinel variant of the HTTP client Error enum: name resolution for the request host failed (DNS lookup error, distinct from DNSResolveFailed's lower-level path). The hostname could not be resolved to addresses, so the request never reaches the connection stage.","triggerScenarios":"Thrown at src/http/error.rs:88 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify DNS configuration and hostname validity","Check if the resolver supports returning records usable for QUIC connections","Test with dig/nslookup to confirm the hostname resolves"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","contentChangedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}