UnmatchedRequestError

A FakeHttpTransport under Unmatched.Fail received a request no stub matches. It is an AssertionError, so it is a test failure that no Result or cache loader swallows: through a loader it surfaces as the fatal Error rethrown to each waiter.

Stable Core, source compatibility only. The message is No stub of the FakeHttpTransport matches <METHOD> <redacted URL> (<n> stubs): the URL is Url.redacted(), so no query, header or body is ever in it. Only the fake builds it. Equality is identity.

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?
Link copied to clipboard

The request's method.

Link copied to clipboard

The request's URL as Url.redacted() prints it.

Link copied to clipboard

How many stubs the fake held when the request arrived.