Skip to content

DnsOverHttps throws raw exception instead of UnknownHostException #9698

Description

@yschimke

Could be arguable, but not inline with other Dns impls.

aResolverHttpErrorArrivesAsAnUnknownHost
org.opentest4j.AssertionFailedError: expected [a 429 from the resolver] to be instance of:<class java.net.UnknownHostException but had class:<class java.io.IOException

From https://yschimke.github.io/okhttp-testbed/topics/dns.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug in existing code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions