cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate IV
Advocate IV

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.

21 REPLIES 21
Highlighted
Advocate I
Advocate I

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.

 

Highlighted
Frequent Visitor

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

Highlighted
Advocate IV
Advocate IV

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.

 

Highlighted
Regular Visitor

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.

Highlighted
Helper V
Helper V

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.  

Highlighted
Skilled Sharer
Skilled Sharer

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

me too, just received this error...   When a Task is Completed trigger.  

Highlighted
Regular Visitor

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

Any Progress on this? We went live last monday with out any issues and today we started having this issue in prod. Can you please let us know the root cause for this?


@Brice235i wrote:

me too, just received this error...   When a Task is Completed trigger.  


 

Highlighted
Skilled Sharer
Skilled Sharer

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

We've raised a premier ticket,...  has sucessfully progressed past first level support.  I beleive it is now going to the engineers...  Waiting............

Highlighted
Regular Visitor

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

@Brice235i  : Just wanted to check if  you got an update on that ticket? I am facing the same issue as well.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Users online (7,432)