B2C PreTokenIssuance API Connector is timing out after 5 seconds instead of 20 seconds

Within the last few days, Azure B2C is only waiting 5 seconds for a response before attempting a retry and then timing out after another 5 seconds.
The previous experience was a 20 second timeout, which is also stated in the documentation here: https://learn.microsoft.com/en-us/entra/external-id/self-service-sign-up-add-api-connector#best-practices
Why was the timeout period changed?
Microsoft Entra ID
-
Tulshinarayan Giri • 0 Reputation points
2025-04-09T13:53:24.43+00:00 Add +1, We are encountering same issue, and unfortunately Microsoft support team don't have any information on it to share with us so far
-
Shivam Trivedi • 0 Reputation points
2025-04-09T13:53:42.97+00:00 We have also started noticing this problem from last few days. Specifically, since from 4th April.
-
Shirish Patil • 0 Reputation points
2025-04-09T14:04:26.92+00:00 We are also facing the same issue and have already created a support ticket. The support engineer mentioned that the problem lies with the connector API. I have explained to multiple support engineers that the process works if the connector responds within 4 seconds, but it fails if the response takes longer. It seems they are unsure how to resolve or debug the issue. This has been ongoing for the past two days.
-
Mike Palgon • 40 Reputation points
2025-04-11T10:37:30.4933333+00:00 I have been experiencing the same, since April 4. Cannot find a setting to set the timeout explicitly (wondering if setting to 29 seconds would eliminate the broken default behavior).
-
Adam Gatt • 25 Reputation points
2025-04-14T00:53:39.9833333+00:00 Microsoft Support has not been helpful with their response to this issue.
As an aside, the engineer pointed out what the link I provided above to documentation was not for B2C, and a different product. So here is the correct link:
-
Raja Pothuraju • 20,960 Reputation points • Microsoft External Staff
2025-04-15T18:39:35.38+00:00 Hello @Adam Gatt,
I see that you've already raised a support ticket with our team — 2504070030009160. Please correct me if this is not the ticket you submitted.
I’ve reviewed the case, and I can confirm that our support engineer has already notified the engineering team to make the necessary changes to your tenant. I’ll continue to monitor the progress and will notify you once your tenant has been added to the exemption list.
-
Adam Gatt • 25 Reputation points
2025-04-15T23:59:23.4266667+00:00 Thanks, @Raja Pothuraju
Yes, that is my support case. This hasn't been communicated to me as yet by the support team.
Can you please explain why a change to the tenant is necessary? Why did Microsoft change the behaviour, and where was it communicated / linked documentation not updated?
We will need this rectified on all of our B2C tenants as we have multiple for different environments.
-
Mike Palgon • 40 Reputation points
2025-04-16T00:57:10.2133333+00:00 @Raja Pothuraju , I will need my tenants exempted as well. Should I open a ticket and reference this thread or is there a preferred way of submitting this request?
Thank you.
-
Raja Pothuraju • 20,960 Reputation points • Microsoft External Staff
2025-04-16T20:17:29.92+00:00 Hello @Adam Gatt,
The exemption has been applied to all five of your tenants. I’m sharing the tenant details via private message, as they contain personally identifiable information (PII).
Please note that this is a temporary exemption, valid only until December 31st, 2025. After that date, the changes will be re-applied.
There has been a change in the way API connectors operate—the default timeout has been reduced to 10 seconds, and this behavior is now by design:
Public Doc: API connectors overview
Our team analyzed the response times of APIs linked to this service. Out of 506 records, 223 requests completed in under 10 seconds, while 283 requests hit the 10-second timeout. This means approximately 56% of the requests are failing due to the timeout limit.
As demonstrated, the majority of API responses in your environment take longer than 10 seconds, which is the root cause of the timeouts. This is why our engineering team has temporarily exempted your tenants from the timeout changes—to give you time to assess and optimize your API response times.
For your production tenant ehmpb2c, only 1.36% of requests took more than 10 seconds. However, we identified a clear pattern: the longer response times are tied to processing errors, where the API returns invalid or unprocessable responses (e.g., 409 or 401 errors). These errors not only cause failures but also increase processing time, often leading to timeouts.
Because of the reduced timeout threshold, you may now see timeout errors instead of specific processing errors—since the 10 seconds elapse before the original error is surfaced. It's important to investigate and fix the scenarios where your APIs return such invalid content to prevent future disruptions.
-
Raja Pothuraju • 20,960 Reputation points • Microsoft External Staff
2025-04-16T20:22:14.1833333+00:00 Hello @Mike Palgon,
Yes, but still, it will be a temporary solution. As I mentioned above, there has been a change in the way API connectors operate—the default timeout has been reduced to 10 seconds, and this behavior is now by design:
Public Doc: API connectors overview
Please review your API failures and try to prevent them.
-
Mike Palgon • 40 Reputation points
2025-04-16T20:29:03.7066667+00:00 Thank you Raja Pothuraju. If this is just temporary, then I'll work on resolving it in the API connector. The API endpoint is an Azure Function that connects to Azure SQL and Graph API. I believe the latency is coming from Azure SQL (it's thinly provisioned to save $$ in a dev environment).
-
Adam Gatt • 25 Reputation points
2025-04-16T21:04:13.9766667+00:00 Hi @Raja Pothuraju - I've responded to the private message. Best to take this conversation off a public forum. Thanks for your help.
-
Raja Pothuraju • 20,960 Reputation points • Microsoft External Staff
2025-04-16T21:29:30.94+00:00 Hi @Adam Gatt,
Thank you for taking this up over private message.
-
Adam Gatt • 25 Reputation points
2025-04-24T09:16:43.44+00:00 For anyone else experiencing pain from this unannounced product change, I wish you the best of luck.I have had my support ticket open with Microsoft for 15 days. They have still not rectified the issue in our affected tenants.
Sign in to comment