Management API Error "Trying to Create a Binding for an Action That Has Not Been Deployed Yet"

Overview

When using the Management API to set up bindings programmatically for newly created Actions, sometimes this error is seen:

Trying to create a binding for an action that has not been deployed yet

This article provides a solution for when this error occurs.

Applies To

  • Actions
  • Management API

Cause

Actions can take varying amounts of time to build, depending on their complexity and dependencies.

Solution

Increasing the delay between deploying a new action and attempting to assign it to a trigger to up to 2 minutes should help give enough time for the Action to finish deploying and be ready for trigger binding.

For example, at the time of writing, the Auth0 Deploy CLI uses the methodology described in this Auth0 GitHub page.