40157: Dequeue Instruction does not have a valid 'status_callback_url' parameter
TASKROUTER
ERROR
This error occurs when your Assignment Callback response includes a dequeue instruction with a status_callback_url value that TaskRouter cannot use. In a dequeue instruction, status_callback_url is optional, but if you provide it, it must be a well-formed http:// or https:// URL string that TaskRouter can use for asynchronous webhook GET requests about the worker call.
- You provided
status_callback_urlas an empty string. - You provided
status_callback_urlwith the wrong data type instead of a URL string. - The
status_callback_urlvalue is not a well-formedhttp://orhttps://URL. - Your application generated a
dequeueinstruction payload wherestatus_callback_urlwas serialized incorrectly, so TaskRouter did not receive a valid URL string.
- Set
status_callback_urlto a completehttp://orhttps://URL string. - Remove
status_callback_urlfrom thedequeueinstruction if you do not need asynchronous worker call status webhooks. - Verify that your Assignment Callback returns valid JSON for the
dequeueinstruction and thatstatus_callback_urlis serialized as a string. - If you also send
status_callback_events, provide a validstatus_callback_urlso TaskRouter has a destination for those event webhooks.