Hi there, i am having trouble with making akka recognize an UnMarshaller, for improved formatting i have post my question in stackoverflow http://stackoverflow.com/questions/40469370/missing-fromrequestunmarshallerentity-on-akka-post-route
in summary i am getting the error could not find implicit value for parameter um: akka.http.scaladsl. unmarshalling.FromRequestUnmarshaller i am originally using code from http://www.cakesolutions.net/teamblogs/message-formats-marshallers-and-code-quality the UnMarshaller there does not seem to get recognised, I was able to solve the issue just by introducing a specialised UnMarshaller in scope. implicit val um:Unmarshaller[HttpEntity, PropertyEntity] = { Unmarshaller.byteStringUnmarshaller.mapWithCharset { (data, charset) => val charBuffer = Unmarshaller.bestUnmarshallingCharsetFor(data) JsonFormat.fromJsonString(data.decodeString(charBuffer.nioCharset().name()))(PropertyEntity) /*PropertyEntity.parseFrom(CodedInputStream.newInstance(data.asByteBuffer))*/ } } This solutions has 2 issues, 1. i need to provide an unmarshaller for each entity i use, these entities are generated from ScalaPB, i tried using their base class, but i am not sure how to map it to a specific class upon deserialisation 2. not sure how to write the condition to use the different unmarshaller based on request headers. -- >>>>>>>>>> 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 https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
