I am using Finagle/Finch and I get this error:
diverging implicit expansion for type argonaut.DecodeJson[A] starting
with method MapDecodeJson in trait DecodeJsons
diverging implicit expansion for type argonaut.DecodeJson[V] starting
with method MapDecodeJson in trait DecodeJsons
not enough arguments for method body: (implicit d:
io.finch.Decode.Aux[A,CT], implicit ct:
scala.reflect.ClassTag[A])io.finch.Endpoint[A]. Unspecified value
parameters d, ct.
For this code:
def sendPost(db: CommDb): Endpoint[String] =
post("posts" :: body.as[String]) { s: String =>
Ok("success")
}
I have no idea how to resolve this.