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

🐌 Handle MyPurdue request throttling #78

Merged
merged 1 commit into from
Jan 8, 2025
Merged

🐌 Handle MyPurdue request throttling #78

merged 1 commit into from
Jan 8, 2025

Conversation

haydenmc
Copy link
Member

@haydenmc haydenmc commented Jan 8, 2025

MyPurdue has recently started throttling incoming requests, preventing Purdue.io CatalogSync from successfully syncing:

We are sorry, but the site has received too many requests.

The exact behavior of the throttle logic is unclear, but brief experimentation has revealed that after being throttled, you must wait a minimum of 60 seconds from your last request to avoid being throttled again.

This change implements an exponential delay with a 60-second base time when the throttling message is received to allow the sync to complete.

@haydenmc haydenmc merged commit cc07773 into main Jan 8, 2025
1 check passed
@haydenmc haydenmc deleted the throttling branch January 8, 2025 01:02
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