40147: Supervise instruction failed: missing or invalid 'contact_uri'
TASKROUTER
ERROR
This error occurs when you issue a Supervise instruction and the Supervisor's Worker attributes do not include a valid contact_uri. TaskRouter stores Worker attributes as JSON and needs contact_uri to know whom to call.
- The Supervisor's Worker attributes do not include
contact_uri. - The Supervisor's Worker attributes are not valid JSON, so TaskRouter cannot read
contact_uri. - The
contact_urivalue is invalid. - The
contact_urivalue does not point to a valid phone number or client ID for your implementation.
- Update the Supervisor's Worker attributes to include a valid
contact_uri. - Make sure the Worker attributes are valid JSON before you save them.
- Set
contact_urito the phone number or client ID that should receive the Supervise call. - Fetch the Worker after updating it to confirm the attributes were saved, then retry the Supervise instruction.