diff --git a/examples/src/main/scala/sttp/client4/examples/LogRequestsSlf4j.scala b/examples/src/main/scala/sttp/client4/examples/LogRequestsSlf4j.scala index 9c5d73f937..34d57d5412 100644 --- a/examples/src/main/scala/sttp/client4/examples/LogRequestsSlf4j.scala +++ b/examples/src/main/scala/sttp/client4/examples/LogRequestsSlf4j.scala @@ -12,7 +12,7 @@ object LogRequestsSlf4j extends App { val request = basicRequest .get(uri"https://httpbin.org/get") - .response(asJson[HttpBinResponse].getRight) + .response(asJson[HttpBinResponse].orFail) val backend: SyncBackend = Slf4jLoggingBackend(