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

31408: Request Timeout


ERROR: 31408

error-31408 page anchor
VOICE
ERROR

This indicates a Voice request timed out. Twilio returns this code during Voice SDK registration, unregistration, connect, and CallInvite.accept flows. For call-related HTTP requests, Twilio enforces a hard 15-second upper timeout on the initial response packet.

Possible causes

possible-causes page anchor
  • Your Voice webhook or other call-related HTTP request did not send the initial response packet within Twilio's 15-second read timeout.
  • The call is on a restrictive network, and the Voice SDK cannot connect unless you provide ICE servers.
  • Return TwiML from your Voice webhook within 15 seconds so Twilio receives a response before the read timeout expires.
  • Use webhook connection overrides such as ct, rt, tt, rc, and rp when you need to tune callback behavior, but keep in mind that the 15-second hard limit still applies to call-processing requests.
  • For connect and CallInvite.accept failures on restrictive networks, provide ICE servers with ConnectOptions.Builder.iceOptions(...) or AcceptOptions.Builder.iceOptions(...).

Additional resources

additional-resources page anchor