GithubHelp home page GithubHelp logo

Comments (6)

bradleyy1012 avatar bradleyy1012 commented on September 8, 2024 4

Yea this happens with a variety of specific api calls. Whoever designed the backend architecture for twilio should probably stop coding.

from twilio-node.

tiwarishubham635 avatar tiwarishubham635 commented on September 8, 2024 1

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.

from twilio-node.

tiwarishubham635 avatar tiwarishubham635 commented on September 8, 2024

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!

from twilio-node.

NishikantS578 avatar NishikantS578 commented on September 8, 2024

"RestException [Error]: Invalid 'To' Phone Number" this error is also uncaught exceptions.

from twilio-node.

tiwarishubham635 avatar tiwarishubham635 commented on September 8, 2024

Hi @NishikantS578! Can you please share your code snippet? Thanks!

from twilio-node.

NishikantS578 avatar NishikantS578 commented on September 8, 2024
    client.messages.create({
        body: message,
        from: phone,
        to: "9234789238",
    })

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.

RestException [Error]: Invalid 'To' Phone Number:

It would be better if it did not threw uncaught exception, since that crashes server.

from twilio-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.