Skip to content
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

[BUG] NoSuchMethodError in ZioHttpRequestBody.asByteArray #2413

Closed
tjarvstrand opened this issue Sep 5, 2022 · 2 comments
Closed

[BUG] NoSuchMethodError in ZioHttpRequestBody.asByteArray #2413

tjarvstrand opened this issue Sep 5, 2022 · 2 comments

Comments

@tjarvstrand
Copy link

Hi,

When using the new zio-http 2.0.0-RC11 release I'm seeing the following exception on all requests handled by my caliban zio-http service (which uses tapir under the hood):

java.lang.NoSuchMethodError: 'zio.ZIO zhttp.http.Request.body()'
	at sttp.tapir.server.ziohttp.ZioHttpRequestBody.asByteArray(ZioHttpRequestBody.scala:36)
	at sttp.tapir.server.ziohttp.ZioHttpRequestBody.toRaw(ZioHttpRequestBody.scala:22)
	at sttp.tapir.server.ziohttp.ZioHttpRequestBody.toRaw(ZioHttpRequestBody.scala:18)
	at sttp.tapir.server.interpreter.ServerInterpreter.$anonfun$decodeBody$1(ServerInterpreter.scala:170)
	at sttp.monad.syntax$MonadErrorOps.flatMap(MonadError.scala:61)
	at sttp.tapir.server.interpreter.ServerInterpreter.decodeBody(ServerInterpreter.scala:170)
	at sttp.tapir.server.interpreter.ServerInterpreter.decodeBody(ServerInterpreter.scala:145)
	at sttp.tapir.server.interpreter.ServerInterpreter.$anonfun$tryServerEndpoint$10(ServerInterpreter.scala:124)
	at sttp.tapir.server.interpreter.ServerInterpreter$ResultOrValue.$anonfun$flatMap$2(ServerInterpreter.scala:237)
	at zio.internal.FiberRuntime.runLoop(FiberRuntime.scala:818)

Scala version: 2.13.8
tapir version: 1.0.6
zio version: 2.0.2
zio-http version: 2.0.0-RC11
caliban-zio-http version: 2.0.1

@tjarvstrand tjarvstrand changed the title [BUG] [BUG] NoSuchMethodError in ZioHttpRequestBody.asByteArray Sep 5, 2022
@adamw
Copy link
Member

adamw commented Sep 5, 2022

Yes we are working on updating ziohttp, see #2412 and #2407

@tjarvstrand
Copy link
Author

ah, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants