check host.json of your Azure function: does it have maxConcurrentRequests=1? (Configure host behaviors to better handle concurrency)
Azure function response status code 429
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?
2 answers
Sort by: Most helpful
-
-
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).