Common errors in Azure Logic Apps (Standard) - Unexpected error. Failed to fetch
Published Apr 25 2022 10:06 PM 18.2K Views
Copper Contributor

Let's discuss some of the common errors and troubleshooting steps in standard logic apps.

 

1. Unexpected error. Failed to fetch

 

This is one of the most reported issues in Standard logic apps. This error is thrown in the workflow run history.

Haris_Abdulkareem_0-1650779542480.pngHaris_Abdulkareem_1-1650779567610.png

 

Actually, this is not an error, rather a security feature. Let's try to understand further.

 

When we open the workflow run history in Azure portal, the browser will call mainly two endpoints. First is the management endpoint. This call with fetch metadata about the runs and actions such as status of the actions. This endpoint is not within any network restrictions configured in the logic app. So, if we have read (or above) access in the logic app, we can see the metadata. The second one is the data endpoint. The actual action inputs and outputs are fetched from this endpoint. If the client machine (that we use to browse the run history) doesn’t have access to the Logic App, if it has any network restrictions, we get above error. We won't be able to see the actual error message in this case if the action is failed. The bottom line is, this is not a run time error, rather this is just securing the actual data going through the workflow.

 

How to troubleshoot this error?

 

Open 'networking' under the settings blade in logic app and check the 'inbound traffic' configuration.

Haris_Abdulkareem_2-1650783134370.png

 

If private endpoint is enabled, the common reason for this error is that your client machine doesn't have access to this private IP of the logic app. We can browse the Logic App run history from a VM within the same or peered VNET where the private endpoint for logic app is created. Client machine can establish a VPN connection to the private network of the Logic App.

 

If the private endpoints are not enabled, there could be other network restriction like access restrictions.

Haris_Abdulkareem_3-1650783134373.png

We can allow our network IP in the access restriction rules as shown below.

Haris_Abdulkareem_0-1650861709937.png

 

 

Please note that, if your client machine doesn't have LOS (line of sight) between the Logic App private network, you will not be able to trigger the workflow with a payload from the portal.

 

Haris_Abdulkareem_5-1650783134376.pngHaris_Abdulkareem_6-1650783134377.png

 

If you have any questions or feedback regarding this, please comment below.

 

4 Comments
Co-Authors
Version history
Last update:
‎Apr 24 2022 09:42 PM
Updated by: