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

31106: Invalid data

Twilio Voice DocumentationVoice

Description

description page anchor

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