You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mock code path in req_perform() returns before applying any req_error() logic. This means that under the default behavior of httr2, a request that returns a 4xx response will error, but capture_requests() will record the response, and on replay in with_mock_api(), the 4xx response will be loaded and returned without error. It also means that any custom error handling a user/package may define won't get tested by mocks.
The text was updated successfully, but these errors were encountered:
The mock code path in
req_perform()
returns before applying anyreq_error()
logic. This means that under the default behavior of httr2, a request that returns a 4xx response will error, butcapture_requests()
will record the response, and on replay inwith_mock_api()
, the 4xx response will be loaded and returned without error. It also means that any custom error handling a user/package may define won't get tested by mocks.The text was updated successfully, but these errors were encountered: