31101: Missing parameter array in request
VOICE
ERROR
This is a Programmable Voice SDK malformed request error indicating that the request did not include the expected parameter array. Twilio lists 31101 in the 311xx malformed request series as "The request is missing the parameter array," and the Error and Warning Dictionary enumerates 31101 as a Voice error.
- A malformed Voice SDK request was sent without the parameters array required for that operation, which falls under the 311xx malformed request series.
- When initiating an outgoing call with the Voice JavaScript SDK, the ConnectOptions payload was built incorrectly so the SDK did not include params as the key or did not provide a JavaScript object of key and value pairs.
- Ensure the request includes a parameters array. For Voice JavaScript SDK calls, pass custom parameters as a params object when invoking device.connect, for example
{ params: { To: "+15551234567" } }. - Verify that your application logic constructs ConnectOptions correctly and retry. Confirm the parameters you intended to send are present by checking call.customParameters after connecting.
- If you are on an older SDK, upgrade to the Voice JavaScript SDK 2.x and review recent changes that provide more descriptive errors to help identify malformed requests during development.