-
Notifications
You must be signed in to change notification settings - Fork 516
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
Twilio crashed nodejs on errors 'Uncaught Exception' #983
Comments
Yea this happens with a variety of specific api calls. Whoever designed the backend architecture for twilio should probably stop coding. |
Hi! One such issue was resolved by #952. Is there some other case where you are facing uncaught exceptions? Please share the code samples to help us reproduce the error. Thanks! |
"RestException [Error]: Invalid 'To' Phone Number" this error is also uncaught exceptions. |
Hi @NishikantS578! Can you please share your code snippet? Thanks! |
Since the 'to' field does not have a valid phone number ( The phone number should include country code as well), twilio throws uncaught exception in response to that.
It would be better if it did not threw uncaught exception, since that crashes server. |
Ohh got it. We need to catch these exceptions. I have added this to our internal backlog to be prioritized. +1s/reactions on this issue (and comments) and PRs will bump it higher up the backlog. |
Issue Summary
For some design thinking beyond my understanding, someone decided to throw 'Uncaught exception' when twilio encounters an error. This is causing Nodejs apps to shutdown (and restart) when that happens which is quite impractical in production. This issue is well documented however i see no resolution so far. Here are some of the tickets and discussion about it:
#949
https://stackoverflow.com/questions/54175579/how-to-handle-twilio-errors-that-crash-nodejs
Steps to Reproduce
Is there any timeline for fixing this terrible issue?
The text was updated successfully, but these errors were encountered: