amplitude / amplitude/Amplitude-Node

Make it possible to identify and catch timeout exceptions

Aberta
#93 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
73
Forks
20
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

## 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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.