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

Artemis: Add retry logic for Perspective API requests #10827

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

DieterReinert
Copy link
Contributor

@DieterReinert DieterReinert commented Jan 15, 2025

Implemented a retry mechanism with exponential backoff to handle transient 503 Service Unavailable errors from Google's Perspective API.

Stack Trace:

A Perspective API request crashed: HttpError: Service Unavailable
at NetRequest.get (/home/ps/main/dist/lib/net.js:210:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async QueryProcessManager._query (/home/ps/main/dist/server/artemis/remote.js:82:17)

Implemented a retry mechanism with exponential backoff to handle transient ``503 Service Unavailable`` errors from Google's Perspective API. This enhancement ensures greater reliability and resilience, especially under high traffic conditions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant