14231: Dial->Conference: Provided Attributes was not valid JSON
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.
- The
Attributesvalue 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
Attributespayload so it is valid JSON before you send the request or return the TwiML. - If you create or update the related Task directly, send
attributesas a JSON string. For example,{ "task_type": "call", "twilio_call_sid": "CAxxx" }. - If you use TaskRouter
conferenceinstruction 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.