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

14231: Dial->Conference: Provided Attributes was not valid JSON


ERROR: 14231

error-14231 page anchor
TASKROUTER
ERROR

This error occurs when the Attributes value provided for a TaskRouter-integrated <Dial><Conference> flow is not valid JSON. TaskRouter task attributes must be expressed as JSON, and TaskRouter uses task attributes when routing work and handling conference instructions for voice tasks.

Possible causes

possible-causes page anchor
  • The Attributes value is not valid JSON.
  • The task attribute payload is malformed instead of being sent as a JSON string. TaskRouter task attributes must be expressed in JSON.
  • The JSON was escaped or double-serialized before Twilio received it.
  • Update the Attributes payload so it is valid JSON before you send the request or return the TwiML.
  • If you create or update the related Task directly, send attributes as a JSON string. For example, { "task_type": "call", "twilio_call_sid": "CAxxx" }.
  • If you use TaskRouter conference instruction for a voice task, include the minimum task attributes {"call_sid":"<callsid>","to":"<E.164 to number>"} and keep the full payload valid JSON.
  • If your application serializes the payload before sending it, make sure the JSON is not escaped.

Additional resources

additional-resources page anchor