Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to identify and catch timeout exceptions #93

Open
HeeL opened this issue Mar 26, 2021 · 1 comment
Open

Make it possible to identify and catch timeout exceptions #93

HeeL opened this issue Mar 26, 2021 · 1 comment

Comments

@HeeL
Copy link

HeeL commented Mar 26, 2021

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

@t0mstah
Copy link

t0mstah commented Mar 30, 2021

+1. Facing same problem. Never saw this error before, but seeing it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants