[error] xxxx/media-service-scala-api/src/main/scala/com/ndolo/media/service/MediaService.scala:19: could not find implicit value for parameter responseSerializer: com.lightbend.lagom.scaladsl.api.deser.MessageSerializer[play.api.mvc.Result, _]
[error] Service.restCall(Method.POST, "/service/media/users/:uploadMedia/upload", uploadMedia _),
[error] ^
[error] one error found
--
You received this message because you are subscribed to the Google Groups "Lagom Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lagom-framework+unsubscribe@googlegroups.com.
To post to this group, send email to lagom-framework@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lagom-framework/cbe7c9e3-b9b1-44df-8b62-681f6d354a84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
interface PlayServiceCall<Request, Response> {
EssentialAction invoke(Function<ServiceCall<Request, Response>, EssentialAction> wrapCall);
}
Hi Guy,Lagom does not use the Play Result class natively. The expectation is that you will use a domain-specific type that supports serialization to some common format.You can use akka.Done if you don't have any information you need to send in the response.Best,Tim
On Mon, Nov 20, 2017 at 5:57 AM, guy.youansi via Lagom Framework Users <lagom-f...@googlegroups.com> wrote:
Hey Guys,
I am working on a service for uploading file and I am using Lagom 1.3.x and specially the Play Framework.
I have a MessageSerializer compile problems with com.lightbend.lagom.scaladsl.api.ServiceCall and not with
com.lightbend.lagom.javadsl.api.ServiceCall. The Java implementation of the service compiles without failures and use com.lightbend.lagom.javadsl.server.PlayServiceCall.
Here is just the signature of one method of the service api:
1- Scala version - def uploadMedia(id: String): ServiceCall[NotUsed, play.api.mvc.Result]
2- Java version - ServiceCall<NotUsed, play.api.mvc.Result> uploadMedia(id: String)
The following is the compiler error concerning the missing MessageSerializer for play.api.mvc.Result:
[error] xxxx/media-service-scala-api/src/main/scala/com/ndolo/media/service/MediaService.scala:19: could not find implicit value for parameter responseSerializer: com.lightbend.lagom.scaladsl.api.deser.MessageSerializer[play.api.mvc.Result, _]
[error] Service.restCall(Method.POST, "/service/media/users/:uploadMedia/upload", uploadMedia _),
[error] ^
[error] one error found
Do I miss something? Please I would be glad to have support concerning this issue.
Best,
Guy
--
You received this message because you are subscribed to the Google Groups "Lagom Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lagom-framewo...@googlegroups.com.
To post to this group, send email to lagom-f...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lagom-framework/cbe7c9e3-b9b1-44df-8b62-681f6d354a84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to lagom-framework+unsubscribe@googlegroups.com.
To post to this group, send email to lagom-framework@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lagom-framework/2eb802cc-09e2-4a2d-a9e7-a252a932bdde%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lagom-framework/2eb802cc-09e2-4a2d-a9e7-a252a932bdde%40googlegroups.com.
Hi Guy,
Could you be more specific about what you need to do? I don't totally understand what's wrong from the small amount of code provided. Can you share an example on GitHub?Best,Tim
To view this discussion on the web visit https://groups.google.com/d/msgid/lagom-framework/a883896e-ec13-40d5-8a3f-29d34b401e2c%40googlegroups.com.
Guy,You might be interested in the new file upload recipe: https://github.com/lagom/lagom-recipes/tree/master/file-upload/file-upload-scala-sbtThis shows a different approach for handling files using an ordinary Play controller, and demonstrates composing Play routes with a Lagom service in the same application.I hope that makes things simpler. We look forward to hearing your feedback.Best,Tim
On Mon, Feb 26, 2018 at 7:20 AM, guy.youansi via Lagom Framework Users <lagom-f...@googlegroups.com> wrote:
Hi Tim,
sorry for taking long time concerning this issue. I was just to busy with other stuff.
Now I have a github project (https://github.com/ralphlaude/upload-service) and you can now better understand, what the issue is.
Thanks a lot for helping.
Best,
Guy
Am Dienstag, 12. Dezember 2017 05:54:43 UTC+1 schrieb Tim Moore:
Hi Guy,Could you be more specific about what you need to do? I don't totally understand what's wrong from the small amount of code provided. Can you share an example on GitHub?Best,Tim
To view this discussion on the web visit https://groups.google.com/d/msgid/lagom-framework/2eb802cc-09e2-4a2d-a9e7-a252a932bdde%40googlegroups.com.
--Tim MooreSenior Engineer, Lagom, Lightbend, Inc.
--
You received this message because you are subscribed to the Google Groups "Lagom Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lagom-framewo...@googlegroups.com.
To post to this group, send email to lagom-f...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lagom-framework/a883896e-ec13-40d5-8a3f-29d34b401e2c%40googlegroups.com.