cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
wnzn
Level 8

Error 520 - API Hub token exchange internal server failure.

A flow in our environment is reporting the following error message:

"There's a problem with the flow's trigger."

 

Digging into the details gives the following:

{ "Message": "API Hub token exchange internal server failure.", "SourceUri": "https://power-te-northeurope-2.azurewebsites.net/tokens/*<shortened>*/exchange", "IsCachedResponse": "false" }

 

Refreshing the connection does not make it go away. I copied the flow and use that (that works) but this is not a reliable solution.

 

I noticed a number of similar posts here and I contacted support but I want to get the message out there that these issues still occur.

5 REPLIES 5
OlafStetzer
Level: Powered On

Re: Error 520 - API Hub token exchange internal server failure.

I have the same error warning in one of my flows.

 

The trigger for this flow is: When a file (in a sharepoint document library) has been created (only file information).

This has appeared only recently and I did not change anything since then within the flow.

What I did change is add the feature information management policy to the sharepoint to which the trigger points.

Is this related?

 

Please advise.

 

DenisStark
Level: Powered On

Re: Error 520 - API Hub token exchange internal server failure.

I have identical problem, trigger is "When an item is created" in SQL database.

MS, please take a look on that. Would be also great if owners of the flow will be notified in case of issues.

 

Thanks

wnzn
Level 8

Re: Error 520 - API Hub token exchange internal server failure.

@OlafStetzer,

No information management policy applied here. 

 

I got the following non-response for my support call:

 

Spoiler

As error 520 is an intermittent error and it may come in the specific trigger due to  sever issue or while connecting to the API. Making the copy of the flow or re-add the trigger will solve this issue.

 

You don’t need to monitor the flow to see for it.

 

markus1
Level: Power Up

Re: Error 520 - API Hub token exchange internal server failure.

Ran into the same problem right now. Trigger is "When a file is created (properties only)".

 

Error just show as "520".

 

Any update on this?

 

Thankfully this happened during testing. Not going live with this when there are unknown errors.

 

Update: Not sure, but it looks like the Flow completely breaks when this error occurs. Not even editing and saving it helps. Seems weird because the error sounds more like a temporary problem.

akharns
Level: Powered On

Re: Error 520 - API Hub token exchange internal server failure.

I am interested in seeing follow-up on this issue.  It happened to me yesterday.  A Flow that successfully ran several previous days failed yesterday with the same 520 error, "API Hub token exchange internal server failure."  The flow does not appear as a failed execution, but rather, a message comes up after some time saying "There's a problem with the flow's trigger."  The trigger was "When a file is created" using the data gateway to look at on-premises files.  

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 87 members 4,152 guests
Recent signins:
Please welcome our newest community members: