b2c API connectors timeout after 30 seconds, retries but UI gets stuck

Fabio Rodrigues 1 Reputation point
2021-07-08T15:29:25.297+00:00

The documentation says that b2c API connectors on custom policies have the following behavior related to timeout/retries

If there is slow or no response from the RESTful service to Azure AD B2C, the timeout is 30 seconds and the retry count is two times (meaning there are 3 tries in total). The timeout and retry count settings are not currently configurable.

https://learn.microsoft.com/en-us/azure/active-directory-b2c/api-connectors-overview?pivots=b2c-custom-policy

I can see the retry after 30 seconds hitting the backend, but in the UI it gets stuck on the message

Please wait while we process your information.

And in the browser I can see that the request failed in 30 seconds, with '503 Service Unavailable'.

Isn't supposed to wait more 30 seconds for the first retry?
Also, why the UI is getting stuck instead of showing error?

Thanks

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,639 questions
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 21,621 Reputation points Microsoft Employee
    2021-07-16T19:09:02.407+00:00

    Hi @Fabio Rodrigues , we've looked into this and understand that the documentation was a little confusing. We will be sure to fix the docs soon to account for this.
    When you call an API Connector, there are many responses that could result form the call:

    1- No response at all, in such case the timeout is 30 seconds and there are no retries for that.
    2- Bad response, in such case the call is retried two more times. Has nothing to do with the 30 seconds timeout.

    In both cases, you should get back an error message that looks something like this:

    115485-screenshot.jpg

    I hope this helps! Please let me know if you have any questions.

    If this answer helped you please mark it as "Verified" so other users can reference it.

    Thank you,
    James