Applying the code suggestion can fail with a generic error when the FILE_EDIT hook rejects the commit. This can be caused by a custom hook or a Yet Another Commit Checker Plugin (YACC).
Check the community ticket for more details: https://community.atlassian.com/t5/Bitbucket-questions/Are-code-suggestions-broken-in-Bitbucket-7-4/qaq-p/1453200
- The displayed error message should show detailed information about the reason of rejecting commit.
- It should be possible to apply the suggestion with a second try.
- The displayed error message doesn't give the user any clue what's the reason of the failure.
- After the failure, the apply button is disabled and the user can't re-apply the suggestion.
Disable the custom FILE_EDIT hook or disable the Yet Another Commit Checker Plugin.