Problem/Motivation

Getting this error

Twilio\Exceptions\RestException: [HTTP 400] Unable to create record: The 'To' number +11234567890 is not a valid phone number.

Steps to reproduce

  1. Install module & Configure the it.
  2. Navigate to the configuration page Send Test SMS Message (/admin/config/system/twilio/test).
  3. Enter the wrong number in the phone number field.
  4. And send the SMS.
CommentFileSizeAuthor
#3 3359641-3.patch1.48 KBomkar_yewale

Issue fork twilio-3359641

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

    Comments

    Shani Maurya created an issue. See original summary.

    omkar_yewale’s picture

    Assigned: Unassigned » omkar_yewale
    Status: Active » Needs work
    omkar_yewale’s picture

    Assigned: omkar_yewale » Unassigned
    Status: Needs work » Needs review
    StatusFileSize
    new1.48 KB

    I have created a patch for this issue, Please review.
    The patch addresses the problem by handling errors through exceptions.

    shani maurya’s picture

    Assigned: Unassigned » shani maurya
    shashank5563’s picture

    Status: Needs review » Fixed
    shashank5563’s picture

    Status: Fixed » Closed (fixed)