Common errors in Azure Logic Apps (Standard) - Unexpected error. Failed to fetch

Published Apr 25 2022 10:06 PM 995 Views
Senior Member

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.

 

%3CLINGO-SUB%20id%3D%22lingo-sub-3293197%22%20slang%3D%22en-US%22%3ECommon%20errors%20in%20Azure%20Logic%20Apps%20(Standard)%20-%20Unexpected%20error.%26nbsp%3BFailed%20to%20fetch%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3293197%22%20slang%3D%22en-US%22%3E%3CP%3ELet's%20discuss%20some%20of%20the%20common%20errors%20and%20troubleshooting%20steps%20in%20standard%20logic%20apps.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%26nbsp%3B%3CSTRONG%3EUnexpected%20error%3C%2FSTRONG%3E%3CSPAN%3E.%26nbsp%3BFailed%20to%20fetch%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20one%20of%20the%20most%20reported%20issues%20in%20Standard%20logic%20apps.%20This%20error%20is%20thrown%20in%20the%20workflow%20run%20history.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Haris_Abdulkareem_0-1650779542480.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F366319i1B848333A0AC9BEC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Haris_Abdulkareem_0-1650779542480.png%22%20alt%3D%22Haris_Abdulkareem_0-1650779542480.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Haris_Abdulkareem_1-1650779567610.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F366320i1BBC0B29571A2497%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Haris_Abdulkareem_1-1650779567610.png%22%20alt%3D%22Haris_Abdulkareem_1-1650779567610.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EActually%2C%20this%20is%20not%20an%20error%2C%20rather%20a%20security%20feature.%20Let's%20try%20to%20understand%20further.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20we%20open%20the%20workflow%20run%20history%20in%20Azure%20portal%2C%20the%20browser%20will%20call%20mainly%20two%20endpoints.%20First%20is%20the%20management%20endpoint.%20This%20call%20with%20fetch%20metadata%20about%20the%20runs%20and%20actions%20such%20as%20status%20of%20the%20actions.%20This%20endpoint%20is%20not%20within%20any%20network%20restrictions%20configured%20in%20the%20logic%20app.%20So%2C%20if%20we%20have%20read%20(or%20above)%20access%20in%20the%20logic%20app%2C%20we%20can%20see%20the%20metadata.%20The%20second%20one%20is%20the%20data%20endpoint.%20The%20actual%20action%20inputs%20and%20outputs%20are%20fetched%20from%20this%20endpoint.%20If%20the%20client%20machine%20(that%20we%20use%20to%20browse%20the%20run%20history)%20doesn%E2%80%99t%20have%20access%20to%20the%20Logic%20App%2C%20if%20it%20has%20any%20network%20restrictions%2C%20we%20get%20above%20error.%20We%20won't%20be%20able%20to%20see%20the%20actual%20error%20message%20in%20this%20case%20if%20the%20action%20is%20failed.%20The%20bottom%20line%20is%2C%20this%20is%20not%20a%20run%20time%20error%2C%20rather%20this%20is%20just%20securing%20the%20actual%20data%20going%20through%20the%20workflow.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHow%20to%20troubleshoot%20this%20error%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOpen%20'networking'%20under%20the%20settings%20blade%20in%20logic%20app%20and%20check%20the%20'inbound%20traffic'%20configuration.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Haris_Abdulkareem_2-1650783134370.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F366329i1A6247EE58C01497%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Haris_Abdulkareem_2-1650783134370.png%22%20alt%3D%22Haris_Abdulkareem_2-1650783134370.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20private%20endpoint%20is%20enabled%2C%20the%20common%20reason%20for%20this%20error%20is%20that%20your%20client%20machine%20doesn't%20have%20access%20to%20this%20private%20IP%20of%20the%20logic%20app.%20We%20can%20browse%20the%20Logic%20App%20run%20history%20from%20a%20VM%20within%20the%20same%20or%20peered%20VNET%20where%20the%20private%20endpoint%20for%20logic%20app%20is%20created.%20Client%20machine%20can%20establish%20a%20VPN%20connection%20to%20the%20private%20network%20of%20the%20Logic%20App.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20the%20private%20endpoints%20are%20not%20enabled%2C%20there%20could%20be%20other%20network%20restriction%20like%20access%20restrictions.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Haris_Abdulkareem_3-1650783134373.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F366330i2342705C0C14046E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Haris_Abdulkareem_3-1650783134373.png%22%20alt%3D%22Haris_Abdulkareem_3-1650783134373.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWe%20can%20allow%20our%20network%20IP%20in%20the%20access%20restriction%20rules%20as%20shown%20below.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Haris_Abdulkareem_0-1650861709937.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F366447iF59428B6471979F9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Haris_Abdulkareem_0-1650861709937.png%22%20alt%3D%22Haris_Abdulkareem_0-1650861709937.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20note%20that%2C%20if%20your%20client%20machine%20doesn't%20have%20LOS%20(line%20of%20sight)%20between%20the%20Logic%20App%20private%20network%2C%20you%20will%20not%20be%20able%20to%20trigger%20the%20workflow%20with%20a%20payload%20from%20the%20portal.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Haris_Abdulkareem_5-1650783134376.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F366332i0BC16CD115170B0D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Haris_Abdulkareem_5-1650783134376.png%22%20alt%3D%22Haris_Abdulkareem_5-1650783134376.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Haris_Abdulkareem_6-1650783134377.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F366333iBF25303E84F029E7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Haris_Abdulkareem_6-1650783134377.png%22%20alt%3D%22Haris_Abdulkareem_6-1650783134377.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20have%20any%20questions%20or%20feedback%20regarding%20this%2C%20please%20comment%20below.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3293197%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22logic-apps-life-cycle.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F366318i4B4FC60984F58277%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22logic-apps-life-cycle.png%22%20alt%3D%22logic-apps-life-cycle.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3293197%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELogic%20Apps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Apr 24 2022 09:42 PM
Updated by: