Issue with Policy Fragments and Retry in Backend

Sun Tongxin3 20 Reputation points
2025-02-05T07:13:28.8466667+00:00

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.User's image

User's image

User's image

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.

User's image

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

https://docs.azure.cn/en-us/api-management/retry-policy

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,281 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.