Skip to contentSkip to navigationSkip to topbar
Page tools
Useful for sharing or LLM
Accelerate development with AI

On this pageProducts used
Looking for more inspiration?Visit the
Error
Application error

40147: Supervise instruction failed: missing or invalid 'contact_uri'

Twilio TaskRouter DocumentationTaskRouter

Description

description page anchor

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.

Possible causes

possible-causes page anchor
  • 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_uri value is invalid.
  • The contact_uri value 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_uri to 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.

Additional resources

additional-resources page anchor