Skip to content

How to ignore message.headers (corrupt data chokes consumer) #925

Answered by Lancetnik
ChadDa3mon asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @ChadDa3mon! In this case you should use custom wrapper
You can just wrap original parser calling by try ... except ... and raise RejectMessage exception on error. Also, you can replace broken headers by empty one at exception and retry to serialize it by original parser again.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Lancetnik
Comment options

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