com.twilio.sdk.TwilioRestException: A 'To' phone number is required.

Stack Overflow | Rashmi | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Exception on sending sms from Java web application using Twilio sms api

    Stack Overflow | 7 months ago | Rashmi
    com.twilio.sdk.TwilioRestException: A 'To' phone number is required.

    2 unregistered visitors

    Root Cause Analysis

    1. com.twilio.sdk.TwilioRestException

      A 'To' phone number is required.

      at com.twilio.sdk.TwilioRestException.parseResponse()
    2. twilio-java-sdk
      MessageList.create
      1. com.twilio.sdk.TwilioRestException.parseResponse(TwilioRestException.java:74)
      2. com.twilio.sdk.TwilioClient.safeRequest(TwilioClient.java:497)
      3. com.twilio.sdk.resource.list.MessageList.create(MessageList.java:70)
      3 frames
    3. com.twilio
      Example.main
      1. com.twilio.Example.main(Example.java:54)
      1 frame