Azure function response status code 429

Lelelo1 1 Reputation point
2021-04-16T11:22:04.33+00:00

I have a azure function published. When I open two tabs the browser and call it I get:

Response status code does not indicate success: 429 (Too Many Requests).

.. in the second tab.

The plan I have is Consumption.

Why can I not call the same function multiple times? Shoulden't 'Consumption' scale and allow concurrent calls?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,619 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. sadomovalex 3,591 Reputation points
    2021-04-16T14:18:52.503+00:00

    check host.json of your Azure function: does it have maxConcurrentRequests=1? (Configure host behaviors to better handle concurrency)

    No comments

  2. Lelelo1 1 Reputation point
    2021-04-17T08:38:56.987+00:00

    I was experiencing the issue with:

    {  
         "version": "2.0",  
         "logging": {  
             "applicationInsights": {  
                 "samplingExcludedTypes": "Request",  
                 "samplingSettings": {  
                     "isEnabled": true  
                 }  
             }  
         }  
     }
    

    Then I ended up with trying adding different extensionSettings. But when i changed back to the original host.json that was in git - the problem was gone (with the host.config above)


    Nevermind, after 10-15 requests i'ts back again:

    Response status code does not indicate success: 429 (Too Many Requests).