0

I have <log-to-eventhub> policy at global level in API Management instance. The policy used to store the incoming request metadata in eventhub. This policy just serves the logging. Recently my eventhub was down and all API requests ended with 500 Error .

How to ensure that the request will be served irrespective of eventhub logging. that means, my policy expression evaluation should be ignored if there is an error in <log-to-eventhub>.

Note- <on-error> policy section can not be implemented.

Pankaj More
  • 433
  • 3
  • 10
  • If there is no `on-error` section, callers will receive 400 or 500 HTTP response messages if an error condition occurs. –  Oct 18 '21 at 05:27
  • `` policy section cannot be implemented means do you want the steps to implement that? –  Oct 18 '21 at 05:27
  • 1
    @HariKrishnaRajoli-MT Yes, callers will receive 500 error on policy failure. I am looking for how to handle exceptions in policy expressions without use of . section is already used in my global policy and can not be used in this case due to design limitations. – Pankaj More Oct 19 '21 at 05:28

0 Answers0