Skip to content

getting KafkaJSNumberOfRetriesExceeded on custom errors #1750

@yuri-abaev-payu-gpo

Description

@yuri-abaev-payu-gpo

it was said here that that custom Errors do no trigger retry but when throwing some custome error (I called it throw1) I do se retires, and even after default 5 retries I get KafkaJSNumberOfRetriesExceeded

see this log file: txt.txt

also, in this project's source code I do see that a custom Error is treated as retriable.

  • which means the custom errors are triggering the retry mechanism as they are retriable
  • am i missing something?

Additionally, my question is how can I throw Custom Errors (to not move the offset ) without triggering retry mechanism?

My issue is that I have a retry topic where the msg is being read from, and the msg throws an error, witch restarts the consumer, which makes the msg be re-consumed, which throws an error and so forth,

  • what can I do to not trigger the retry? and still keep the consumer connected and not-crashed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions