Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[textanalytics] quota limit exceeded behavior #25619

Closed
kristapratico opened this issue Aug 9, 2022 · 3 comments · Fixed by #25631
Closed

[textanalytics] quota limit exceeded behavior #25619

kristapratico opened this issue Aug 9, 2022 · 3 comments · Fixed by #25631
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. Cognitive - Text Analytics
Milestone

Comments

@kristapratico
Copy link
Member

kristapratico commented Aug 9, 2022

Customer reported on the "I ran into an issue" button that they were seeing hanging with the sentiment API when they exceeded the 5000 calls/month quota. It's likely that the service is sending a 403/Retry-After and we're trying to retry on that. We should inject a custom policy that instead throws an exception in this case.

@kristapratico kristapratico added Client This issue points to a problem in the data-plane of the library. Cognitive - Text Analytics labels Aug 9, 2022
@kristapratico kristapratico added this to the 2022-09 milestone Aug 9, 2022
@kristapratico kristapratico self-assigned this Aug 9, 2022
@github-actions github-actions bot added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Aug 9, 2022
@azure-sdk
Copy link
Collaborator

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Event Hubs:0.20153065,Cognitive - Text Analytics:0.09220232,Service Bus:0.067519926'

@kristapratico kristapratico removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Aug 9, 2022
@kristapratico
Copy link
Member Author

Error message:

{"error": {"code": "403", "message": "Out of call volume quota for TextAnalytics F0 pricing tier. Please retry after 15 days. To increase your call volume switch to a paid tier."}}

@kristapratico
Copy link
Member Author

We don't normally retry on a 403, but since a Retry-After is included in the headers we do. This is problematic because the Retry-After is set for 15 days (in seconds).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. Cognitive - Text Analytics
Projects
None yet
2 participants