-
Notifications
You must be signed in to change notification settings - Fork 515
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
Unhandled Rejection in Twilio SDK When Catching Exceptions in Application #949
Comments
We are experiencing this issue as well on the same library and node versions. Please advise - this is causing significant issues in our application. |
I am able to reproduce this issue. |
Internal ticket has been created, we are working actively working on it. |
https://github.com/twilio/twilio-node/blob/main/src/rest/conversations/v1/service/conversation/message.ts#L837 --- We are checking our generator code, can this issue occur for all apis. |
I can confirm this also happens for me with other APIs. Saw hundreds of these today, unfortunately:
The code for this is simply: try {
const currentCall = await twilioClient.calls(CallSid).fetch();
const currentCallEvents = await currentCall.events().list();
// ...trimmed for brevity...
} catch (error) {
logger.error("Error fetching call events", error);
} |
Hi @dbburgess, |
Closing this issue as no feedback was received in last 30 days |
Issue Summary
Twilio SDK has unhandled rejection in SDK and can't catch it from the application. This issue causes application termination.
Steps to Reproduce
Code Snippet
Exception/Log
Technical details:
The text was updated successfully, but these errors were encountered: