Skip to contentSkip to navigationSkip to topbar
Page toolsOn this pageProducts used
Looking for more inspiration?Visit the

31106: Invalid data


ERROR: 31106

error-31106 page anchor
VOICE
ERROR

31106 means the data passed to the Voice SDK was not valid. On Android, Voice.handleMessage(context, data) returns false when the data is not a Twilio Voice push message, and CallInvite.isValid(...) validates whether a payload is a valid notification sent by Twilio.

Possible causes

possible-causes page anchor
  • You passed a payload to Voice.handleMessage(context, data) that is not a Twilio Voice push message.
  • The payload does not pass CallInvite.isValid(...) for a Twilio Voice notification.
  • Call CallInvite.isValid(...) before you process the payload, and only continue when it returns true.
  • Use Voice.handleMessage(context, data) only for Twilio Voice push messages, and treat a false return value as non-Voice data.

Additional resources

additional-resources page anchor