Issue
If you encounter the error message "Action AcceptTask has been blocked" (Twilio Error Code: 45600) while using Twilio Flex, it typically indicates that the Flex UI Actions framework is preventing the execution. This is usually caused by a conflict in the current task state or a custom pre-action handler.
Product
Flex
Resolution
Additional Information
- It occurs when the Flex UI Actions framework intercepts and halts the
AcceptTaskinvocation. Common root causes include: It can be because of the following reasons:- Task State Conflicts: The task is no longer in a state that allows acceptance (e.g., already accepted, canceled, or timed out).
- Custom Action Handlers: A custom
beforeAcceptTasklistener or plugin is explicitly blocking the action.
- Check for Custom Actions or Middleware: If you have any customizations in your Flex UI (such as custom Actions or middleware), review them to ensure none are blocking or overriding the AcceptTask action unintentionally.
- Review Task State and Participant State: Make sure the task you are trying to accept is still in a state that allows acceptance (e.g., not already accepted, canceled, or completed by another agent).
- Manual Unhold: If you notice participants remain on hold after a hangup, please try manually unholding them from the Flex UI to fully release the call.
Additional Information
If however even on following these troubleshooting steps, you still face any issue, you can contact support and share the HAR and Console Logs along with Task SID.