Open HeeL opened 3 years ago
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
Filter timeout exceptions and being able to handle them specifically
+1. Facing same problem. Never saw this error before, but seeing it now.
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