Partager via

HTTP 429: {"error":{"code":"429"

JONATHAN TUNNICLIFFE 0 Points de réputation
2025-12-16T11:41:47.7466667+00:00

Bonjour,

nous avons cette erreur en utilisant l'API Azure cognitive services :

KeyPhraseExtraction ==> HTTP 429: {"error":{"code":"429","message": "Requests to the Request text analysis over a collection of documents. Operation under Microsoft Cognitive Language Service - 2024-11-01 have exceeded call rate limit of your current CognitiveServices S0 pricing tier. Please retry after 1 second. Please contact Azure support service if you would like to further increase the default rate limit."}}

nous avons essayé de changer d'offre mais aucune autre offre ne semble disponible pour notre abonnement

pouvez vous svp aider urgemment ?

Azure Language dans Foundry Tools
Azure Language dans Foundry Tools

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.

0 commentaires Aucun commentaire

1 réponse

  1. Anshika Varshney 9,905 Points de réputation Personnel externe Microsoft Modérateur
    2025-12-16T12:36:00.3+00:00

    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:

    1. Respect the Retry‑After header

    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.

    1. 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

    1. Spread calls evenly

    Avoid bursting many requests in a short moment; distribute them over time to stay under the limit.

    1. 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.

    1. 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!


Votre réponse

Les réponses peuvent être marquées comme « Acceptées » par l’auteur de la question et « Recommandées » par les modérateurs, ce qui aide les utilisateurs à savoir que la réponse a résolu le problème de l’auteur.