You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The service will return a Retry-After header that can be up to 3 days and our azure-core retry policy will honor it and wait... this gives the feel of the call hanging forever. We can improve the customer experience by inserting a custom policy that will check for indicators of the quota being exceeded (code, message) and raise an HttpResponseError immediately. Laurent's sample code for example:
So you can do a SansIOHTTPPolicy like:
def on_response(pipeline_response):
response = pipeline_response.response
if response.status_code == 403 and "Out of call volume quota for FormRecognizer F0 pricing tier" in response.text():
raise QuotaReachedError(response.text(), response=response)
The text was updated successfully, but these errors were encountered:
The service will return a Retry-After header that can be up to 3 days and our azure-core retry policy will honor it and wait... this gives the feel of the call hanging forever. We can improve the customer experience by inserting a custom policy that will check for indicators of the quota being exceeded (code, message) and raise an HttpResponseError immediately. Laurent's sample code for example:
The text was updated successfully, but these errors were encountered: