com.twilio.sdk.TwilioRestException

A 'To' phone number is required.

Solutions on the web2

  • A 'To' phone number is required.
  • The From phone number +1NumberIGotFromTwilio is not a valid, SMS-capable inbound phone number or short code for your account.
  • Stack trace

    • com.twilio.sdk.TwilioRestException: A 'To' phone number is required. at com.twilio.sdk.TwilioRestException.parseResponse(TwilioRestException.java:74) at com.twilio.sdk.TwilioClient.safeRequest(TwilioClient.java:497) at com.twilio.sdk.resource.list.MessageList.create(MessageList.java:70) at com.twilio.Example.main(Example.java:54)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago