App Service - Response status code does not indicate success: 429 (Too Many Requests)

Rodrigo Guerreiro 1 Reputation point
2020-06-20T18:33:24.717+00:00

Hi,

I have deploy a app service in azure but when it fails with the exception:
2020-06-20T18:00:24 PID[22560] Error Unhandled exception. System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 429 (Too Many Requests).)
2020-06-20T18:00:24 PID[22560] Error ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 429 (Too Many Requests).
2020-06-20T18:00:24 PID[22560] Error at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
2020-06-20T18:00:24 PID[22560] Error at System.Net.Http.HttpClient.GetStringAsyncCore(Task`1 getTask)
2020-06-20T18:00:24 PID[22560] Error --- End of inner exception stack trace ---

After invoking a http service.

Any tip?

Thanks and Regards

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,913 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 21,766 Reputation points
    2020-06-22T08:31:09.457+00:00

    Thanks for asking question! To elaborate on this Azure Resource Manager does the authentication and first-order validation and throttling of all incoming API requests.
    If you are getting a HTTP status 429 Too Many Requests you need to understand if the request throttling is done by Azure Resource Manager or an underlying resource provider like CRP, inspect the x-ms-ratelimit-remaining-subscription-reads for GET requests and x-ms-ratelimit-remaining-subscription-writes response headers for non-GET requests. If the remaining call count is approaching 0, the subscription’s general call limit defined by Azure Resource Manager has been reached. Activities by all subscription clients are counted together. Otherwise, the throttling is coming from the target resource provider.

    You may refer to Throttling Resource Manager requests for Azure Resource Manager call rate limits and related diagnostic response HTTP headers.

    Reference: https://learn.microsoft.com/en-us/azure/virtual-machines/troubleshooting/troubleshooting-throttling-errors

    Also, The following page describes all Azure subscription limits: https://azure.microsoft.com/en-us/documentation/articles/azure-subscription-service-limits

    10417-429-limits.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.