Issue with Policy Fragments and Retry in Backend
We have added a wait
policy to the policy fragment and introduced this fragment into the retry
policy within the backend. The changes can be saved successfully, but an error occurs during execution, stating that the method cannot be found.
Further testing has reproduced the issue. When we modified the conditions to trigger an exception, we found that the backend only allows one policy. By removing the retry
and forward-request
policies and retaining only the fragment reference, the system runs successfully without errors.
Therefore, we suspect that the issue only occurs when combining the backend with retry
, include-fragment
, and wait
policies.
Can anyone assist in troubleshooting this issue? This situation is not mentioned in the documentation. Is it consistent with the product design?
https://docs.azure.cn/en-us/api-management/wait-policy
https://docs.azure.cn/en-us/api-management/include-fragment-policy