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

Stack Overflow | Rashmi | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

    Stack Overflow | 5 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