An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
All my requests are hitting 429 today on Document Intelligence
All my requests are hitting 429 today for some reason. It doesn't matter if I use the pre-built or custom models. I enabled Auto-Scaling but it didn't fix the issue and we've made no changes.
Azure Document Intelligence in Foundry Tools
-
Jerald Felix • 18,760 Reputation points • Volunteer Moderator2025-09-17T15:54:26.78+00:00 Hello Maher,
Thank you for your question. It's very frustrating when a service that was working perfectly suddenly starts failing with
429errors, especially when you've made no changes to your implementation.The HTTP status code
429 Too Many Requestsis a definitive message from the Document Intelligence service indicating that your application is being throttled because it has exceeded the allowed rate of requests [, ].You mentioned that you enabled auto-scaling, which is a good step, but it's important to understand how throttling and auto-scaling work together in Azure AI services.
Why You're Getting 429 Errors
Even with auto-scaling enabled, there are still base transaction-per-second (TPS) limits on your Document Intelligence resource. For the standard pricing tier, the default limit for analysis requests (POST operations) is 15 TPS.
Auto-scaling is designed to handle gradual increases in load. If your application sends a sudden, sharp spike in requests that far exceeds your current limit, the auto-scaling mechanism might not have enough time to provision the necessary backend resources. During this "warm-up" period, the service will throttle your requests, resulting in the
429errors you're seeing.This can happen for a few reasons:
- A Sudden Burst in Workload: A new process or a batch job in your application might have started sending a large number of documents at once.
Aggressive Polling: If your code is checking for the results of an analysis operation (a GET request) too frequently and in a tight loop, it can also lead to throttling.
Regional Capacity Issues: While less common, there can be temporary capacity constraints in a specific Azure region that cause the service to throttle requests more aggressively than usual.
How to Fix and Prevent This Issue
Here are the best practices for handling
429errors and ensuring your application runs smoothly.1. Implement Exponential Backoff and Retry Logic
This is the most critical and immediate fix. Your application code should be designed to handle throttling gracefully. Instead of failing immediately, it should catch the
429error and automatically retry the request after a short delay.How it works: When you receive a
429error, wait for a small, randomized amount of time (e.g., 1-2 seconds) and then retry the request. If it fails again, increase the delay before the next retry (e.g., 2-4 seconds, then 4-8 seconds, and so on). This "backs off" the pressure on the service, giving it time to catch up [].Check the
Retry-AfterHeader: The429response from the Document Intelligence service often includes aRetry-Afterheader. This header tells you exactly how many seconds you should wait before sending the next request. Using this value is the most efficient way to handle throttling.2. Smooth Out Your Workload
Instead of sending a large batch of requests all at once, try to spread them out over a slightly longer period. A gradual increase in the workload is much less likely to trigger the auto-scaler's throttling mechanism.
3. Request a Quota Increase
If your application consistently requires a higher throughput than the default limit, and you've already implemented retry logic, the next step is to request a permanent increase in your TPS limit.
You can do this by creating a support ticket in the Azure portal and requesting a "Service and subscription limits (quotas)" increase for your Document Intelligence resource [, ]. Be prepared to explain your workload and the throughput you require.
By implementing robust retry logic in your application, you can make it resilient to temporary throttling, which will resolve the immediate issue. For a long-term solution, consider requesting a quota increase if your application's demand consistently exceeds the default limits.
Best Regards,
Jerald Felix
-
Maher • 41 Reputation points
2025-09-17T15:57:16.4866667+00:00 I don't believe it is at the api level. If I try it in Document Intelligence studio no extraction completes regardless of the model or document.
-
Maher • 41 Reputation points
2025-09-17T16:30:36.5533333+00:00 I don't believe it is at the api level. If I try it in Document Intelligence studio no extraction completes regardless of the model or document.
-
Mark Jan Van Kampen • 5 Reputation points
2025-09-18T08:06:41.3533333+00:00 I have the exact same issue starting 10:17 AM UTC yesterday (sept 17)
-
Mark Jan Van Kampen • 5 Reputation points
2025-09-18T08:46:10.6066667+00:00 Dived a bit into it. We are not doing more requests, running requests are taking a very long time. This is visible as we do not do more analyze calls, but only object.get calls are being done. These are done by the poller in the azure SDK (which is at 1s) so if documents are slow, a queue builds up in azure and our services keep on polling azure (through the SDK we did not build the polling ourselves). This leads to so many requests that 429 start being returned. I'm not sure why this is suddenly happing. We did not upgrade packages, change code, or change our traffic. I guess there is some capacity issue at Azure.
Does this mean we have to raise an issue on the azure sdk github, change the polling parameter ourselves, ...? Do note that it takes more than 10 minutes for documents to process now.
-
-
Evan • 5 Reputation points
2025-09-18T20:06:21.8633333+00:00 Same issue here. Document intelligence not working in the web, and API requests are immediately getting rate limited. This is a new feature for us, and I know that we are only processing 1 document at a time so we should not be getting rate limited for a single 66 page file.
-
Evan • 5 Reputation points
2025-09-18T20:50:18.69+00:00 After some of my own digging it appears that the rate limit metric does not indicate you are getting rate limited, but rather the rate limit ceiling.
We created an instance in central US and our documents are processing as expected now. The 66 page file I mention above takes approximately 5 seconds rather than the 30+ minutes it was taking in East.
We will likely stay on central unless we encounter the same issue here at a later date.
-
Anonymous
2025-09-23T02:21:57.91+00:00 Hello Maher,
The issue with Document Intelligence Studio not completing extraction regardless of the model or document is not at the API level but tied to Studio-specific limitations. Models copied across subscriptions or tenants often work via API but fail to appear or function in Studio due to UI constraints. Signature field detection also suffers from misclassification, even with extensive training, because the pretrained image classification model struggles with handwriting variations.
Additionally, the OCR engine in Studio has contextual limitations, such as failing to recognize punctuation like periods before numeric values. To ensure proper setup, use API version 2024-07-31 (Preview), verify resource group and blob container configuration, and confirm that the S01 tier is enabled, as custom models require it. If Studio fails but the API works, validate the model via REST or SDK and consider raising a support ticket.
Hope it helps!
Thank you
-
Maher • 41 Reputation points
2025-09-23T02:27:28.7133333+00:00 the only plausible explanation was that there was a service failure for a few hours. all requests and the studio was failing for about 4 hours
-
Manas R Mohanty • 17,270 Reputation points • Moderator
2025-09-25T06:34:45.06+00:00 Hi Maher
Good day
Yes, you are correct on DI service outages. All most all of Us and Europe regions were impacted. Product group is actively working on it.
Please share your region details if the issue persists.
For prebuilt model, we can load balance with nearby US regions
For custom models, we can copy them using copy authorization Api.
Thank you.
-
Anonymous
2025-09-29T23:49:29.7033333+00:00
Sign in to comment