Skip to content

🐌 Handle MyPurdue request throttling#78

Merged
haydenmc merged 1 commit intomainfrom
throttling
Jan 8, 2025
Merged

🐌 Handle MyPurdue request throttling#78
haydenmc merged 1 commit intomainfrom
throttling

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