Skip to content

Runtime exceptions from serializers are not propogated to the calling thread #1287

Answered by pjfanning
rameshmalla asked this question in Q&A
Discussion options

You must be logged in to vote

Googling, I can't find much discussion about how Akka or Pekko handles failures in serialization. One workaround until someone with more expertise in this area looks into this: catch the exception in your custom serializer and send a serialization of a simple object that flags the serialization issue instead The downstream actor can match on this object and reply with the same message. The ask will then get this as its response. Very circuitous but is a viable workaround until we work out how to handle the issue entirely on the sender side.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@rameshmalla
Comment options

@rameshmalla
Comment options

@pjfanning
Comment options

Answer selected by He-Pin
Comment options

You must be logged in to vote
2 replies
@rameshmalla
Comment options

@He-Pin
Comment options

He-Pin Apr 23, 2024
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants