Skip to content

fix: Enhance WikiMetaClient to handle rate limiting with retries and …#610

Open
ahmed-arb wants to merge 2 commits intodevelopfrom
ahmed-arb/fetch-translations-fix
Open

fix: Enhance WikiMetaClient to handle rate limiting with retries and …#610
ahmed-arb wants to merge 2 commits intodevelopfrom
ahmed-arb/fetch-translations-fix

Conversation

@ahmed-arb
Copy link
Copy Markdown
Collaborator

This PR improves Meta translation sync reliability by adding retry/backoff handling for rate-limited (429) responses in WikiMetaClient, and updates the sync command to better handle partial failures when fetching translations.

It also improves logging/validation for Meta API responses, so failures are clearer and skipped blocks can be retried safely on future runs.

Related issue: #609

ahmed-arb and others added 2 commits March 26, 2026 21:41
…update sync command to fetch translations from Meta. Improved logging for error handling and response validation.
When WIKI_META_COURSE_PREFIX is empty, the mcgroup starts directly with
'course-v1:' which must remain lowercase. Previously the unconditional
.upper() call was turning it into 'Course-v1:', causing Meta API to
reject every request with 'Invalid value for parameter mcgroup'.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant