Service Azure qui fournit des fonctionnalités en langage naturel telles que l’analyse des sentiments, l’extraction d’entités et les réponses automatisées aux questions.
Hi **JONATHAN TUNNICLIFFE,
**Welcome to the Microsoft Q&A and thank you for posting your questions here.
An HTTP 429 Too Many Requests response means the service you’re calling has rate limits and your requests have exceeded those limits. This is a common protection mechanism used by APIs (including Azure Cognitive and Azure AI services) to ensure fair use and reliable service for everyone. Microsoft Learn+1
In your specific case, the service returned:
HTTP 429: {"error":{"code":"429","message":"… have exceeded call rate limit of your current … pricing tier. Please retry after X seconds."}}
That message indicates you’ve hit a calls‑per‑time‑period quota defined by your current pricing tier.
Why It Happens
- Rate limit exceeded: You are sending too many requests or tokens in a short span. APIs often define limits like requests per minute or tokens per minute. Microsoft Learn
- Shared quota or peak usage: Even if your own usage seems low, the service may apply limits at the subscription, model, or deployment level. Microsoft Learn
- Spike in request bursts: Sending many calls back‑to‑back can trigger throttling even if the overall average seems within limits. support.haveibeenpwned.com
Here are practical steps to resolve or mitigate the issue:
- Respect the
Retry‑Afterheader
When the API returns 429, it will often include a Retry‑After value telling you how long to wait before retrying. Use that to pause and retry later.
- Implement rate limiting in your client
Throttle your requests so you don’t exceed the allowed rate e.g., introduce delays between calls or limits on concurrent requests. Postman Blog
- Spread calls evenly
Avoid bursting many requests in a short moment; distribute them over time to stay under the limit.
- Check and increase quota
If possible, review your Azure portal for your pricing tier’s quota settings (requests/tokens per minute). You may be able to request a higher quota or move to a tier with higher limits.
- Use exponential backoff
Retry with increasing delay intervals when you hit 429 e.g., wait 1s, then 2s, then 4s to help reduce retry storms.
In Short: HTTP 429 isn’t a bug it’s throttling by the service because the usage limits were exceeded. Implementing rate limiting and retry strategies or adjusting your quota settings will fix or reduce these errors.
Please let me know if there are any remaining questions or additional details, I can help with, I’ll be glad to provide further clarification or guidance.
Thankyou!