-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export fails on triggers with error: "cannot list action bindings for an entity-bound trigger" #988
Comments
Same issue here.
|
me too
Of note, This was not happening last night as of 7pm ish PST. I exported my tenant with no errors and there haven't been any changes since to the tenant configuration so this appears to be very fresh. |
Same issue here. |
Same issue here too! |
We have the same issue on our side, this also blocks the import into Auth0 for us not only the export |
Same here! |
Looks like Auth0 may have released the I put a workaround in locally to "fix" this for now. I modified my local (js) version of https://github.com/auth0/auth0-deploy-cli/blob/master/src/tools/auth0/handlers/triggers.ts#L88 I just added a warn which allows things to carry on as usual if the response from the call to triggerBindings comes back with "cannot list action bindings for an entity-bound trigger". if (err.message === "cannot list action bindings for an entity-bound trigger") {
logger_1.default.warn(`${err.message.charAt(0).toUpperCase()}${err.message.slice(1)} (${triggerId})`);
return {};
} Edit: |
Same issue on my end |
Per kushalshit27's comment on the above-mentioned PR to temporarily suppress the warning, I was able to exclude the That exclusion seems to be a good workaround on |
Is there any update on this? The PR was closed... |
This is a significant issue as it amounts to a breaking change in Auth0 and affects our ability to take backups of our Auth0 tenants |
We are making good progress on the fix. Thank you for your patience as we work to resolve this issue. |
The fix for this issue is now available in version 8.3.0. 🚀 |
It's working! Thank you guys! |
Checklist
Description
Given
"triggers"
as an included resource type, Deploy CLI gets all triggers and then for each one gets all bindings. For entity-bound triggers, Auth0 Management API responds with400 cannot list action bindings for an entity-bound trigger
. Deploy CLI then fails with that error. There is no logic that I can see in Deploy CLI to check whether a trigger is entity-bound before trying to list bindings.Expectation
Deploy CLI should gracefully exclude off-limits entities from both export and import. I'm happy to open a PR to check whether the trigger is entity-bound, but I'm not sure if simply excluding that data from the export would create diffing/import problems. Just let me know.
Reproduction
I am testing in a more or less fresh tenant as a new Auth0 customer, and this is my first time trying to use Deploy CLI. The issue is consistent and can be seen in the code linked in the description and also in the Management API test request described below. I'm not sure what if any customizations could be made in the tenant to avoid the error, and similarly not sure why others aren't encountering/reporting it.
custom-token-exchange
, which in my case is said byGET /triggers
to be (the only) entity-bound. It is the error thrown by Deploy CLI.export
command with"triggers"
included, and with adequate scopes applied to the token.If you have trouble replicating, start by using the
/triggers
endpoint to see if you have any entity-bound triggers (I say this naively; maybe you are guaranteed to, but I'm not sure). If not, then that is why you aren't encountering the error.Deploy CLI version
8.2.0
Node version
22.7.0
The text was updated successfully, but these errors were encountered: