Closed mimu0 closed 2 months ago
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 Above code snippet have not handled exception raised from: https://github.com/twilio/twilio-node/blob/main/src/base/Page.ts#L226
--- 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:
There was an uncaught error: The requested resource /2010-04-01/Accounts/[redacted]/Calls/[redacted]/Events.json was not found
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, Fix has been released, let us know if this works for you.
@sbansla Thank you, I'll upgrade and test it out.
CC: @mimu0 @jbzd
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: