Skip to content

No KafkaJS error type definitions #193

@trevorr

Description

@trevorr

Environment Information

  • confluent-kafka-javascript version: 0.5.2

Steps to Reproduce

The migration docs mention using Kafka.isKafkaJSError for error handling, but this function is not present in the Typescript typings. None of the KafkaJSError classes are present either. I'm seeing KafkaJSProtocolError thrown in production with the message Broker: Unknown topic or partition, and I would like to handle that, but there doesn't seem to be a clean way to do that from Typescript.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixed-present-in-next-releaseBug or improvement that's done, it is in the development branch but yet unreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions