I've created the actor below and when I attempt to run my app, I get the error "could not find implicit value for parameter um: akka.http.unmarshalling.FromRequestUnmarshaller" for the Person class despite the fact that I have defined an implicit formatter for it.
When I had this same route and server binding defined outside of an actor (in the main app), I didn't have this problem. Any thoughts? Thanks in advance. I was following this post as a guide, BTW: http://blog.michaelhamrah.com/2015/01/adding-http-server-side-events-to-akka-streams/ class HttpService extends Actor with Directives with ImplicitFlowMaterializer with CoreActors with DefaultJsonProtocol with ActorLogging{ implicit val system = context.system //used by CoreActors trait implicit val executionContext = context.system.dispatcher implicit val personFormat = jsonFormat1(Person) implicit val timeout = new Timeout(1 second) implicit val materializer = FlowMaterializer() override def receive: Receive = Actor.emptyBehavior Http()(context.system) .bind("localhost", 8081) .startHandlingWith(route) private def route: Route = path("person" ) { post { handleWith { person:Person => (personServiceActor ? person).mapTo[String] } } } } object HttpService { def props = Props(new HttpService) } -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
