Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

API Hub token exchange internal server failure.

All of a sudden a number of our Flow jobs are returning the below error:


"Message": "API Hub token exchange internal server failure.",
"IsCachedResponse": "false"
Can anyone assist in providing a resolution as a number of important jobs are not presently working for our customer.
Thank you,
Community Support
Community Support

Hi @JesseW ,


Could you try to set-up the debug log for this error message? Please try to reproduce the error and analyze the debug log to check the root cause.


The issue could not be reproduced on my side. I suppose it might be a temporary issue.


Could you take another try with this flow? If the issue still exists, please feel free post back.


Best regards,



Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Not applicable

i had exact same error so i basically turned off and on the flow and waited for few mins which worked for me.

Not applicable

This error still happens: Status 520

This flow had been running for 6+ months without any issue


Same here, a very stable process has failed with this status code

Not applicable

 I spoke with Microsoft Support today and they said I should just ignore the error. The error should disappear next the flow would run

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,011)