Middleware.interceptPatch { req =>
println(s"-------->> @@ req.accept: ${req.accept}")
println(s"-------->> @@ req.userAgent: ${req.userAgent}")
(req, "ok")
} { case (response, (request, _)) =>
println(s"-------->> @@ response.status.isError: ${response.status.isError}")
Patch.empty
}
[info] Stream application closed! Fail(io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /127.0.0.1:4427,Stack trace for thread "zio-fiber-":
[info] Stream application closed! Fail(cc.knowship.subscribe.SubscribeException$JsonDecodeFailed: NpediScheduleInfoReply,Stack trace for thread "zio-fiber-":
[error] Cause:
[error] cc.knowship.subscribe.SubscribeException$DbRecordNotFound: Subscription#id c0fb86a2-6ea6-4ad0-adb5-9b964361c04c