-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to zio 2.1.x for sttp 3.9.x #2243
Comments
Can you create a PR against the sttp3 branch? |
I'm not sure if there's another way to do this besides commenting in the issue description. |
I meant a PR such as: #2244 |
Unfortunately after update the Scala 3 version starts failing with:
After providing the tag explicitly in HttpClientZioBackend:162: ZLayer.scoped.apply(
(for {
backend <- HttpClientZioBackend(
options,
customizeRequest,
customEncodingHandler
)
} yield backend).tap(client => ZIO.addFinalizer(client.close().ignore))
)(zio.Tag.materialize[SttpBackend[Task, ZioStreams with WebSockets]]) I get:
However this doesn't offer any solutions to the problem, just that the intersection type might be the cause for the original compiler failure. Something must have changed between ZIO 2.0 and 2.1, but I think somebody with deeper ZIO knowledge would have to help with this one. |
I'll try with an ugly hack:
works in tests :) |
In order to run sttp with the latest zio version, a new release is necessary.
This issue affects the
sttp3-branch
branch.The text was updated successfully, but these errors were encountered: