GitHub user farooqkamal added a comment to the discussion: Jackson 
serialization - unable to deserialize scala.util.Either from remote actor 
response

Yes I'm using Play 3 with the preconfigured serialization settings

```
pekko.actor {
  serializers {
    jackson-json = 
"org.apache.pekko.serialization.jackson.JacksonJsonSerializer"
    jackson-cbor = 
"org.apache.pekko.serialization.jackson.JacksonCborSerializer"
  }
   serialization-bindings {
      "x.y.CborSerializable" = jackson-cbor // marker trait
      "scala.util.Either" = jackson-cbor
      // "scala.util.Right" = jackson-cbor - tried just in case but has no 
effect
    }
}
``` 
If the response is a simple case class with primitives e.g. `MyCaseClass` it 
works fine, only when the response is `Either[MyError, MyCaseClass]` it fails 
to correctly serialize 

GitHub link: 
https://github.com/apache/pekko/discussions/1387#discussioncomment-9961089

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to