Skip to content

Make it possible to identify and catch timeout exceptions #93

@HeeL

Description

@HeeL

Summary

The way timeout exceptions are thrown make it not possible to catch them explicitly as its just a generic rejections with an empty new Error():

https://github.com/amplitude/Amplitude-Node/blob/main/packages/utils/src/queue.ts#L56

Motivations

Filter timeout exceptions and being able to handle them specifically

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions