Skip to content

feat: add throttled-retry and onStatusChange#6

Open
sylingd wants to merge 4 commits into
violentmonkey:mainfrom
sylingd:main
Open

feat: add throttled-retry and onStatusChange#6
sylingd wants to merge 4 commits into
violentmonkey:mainfrom
sylingd:main

Conversation

@sylingd
Copy link
Copy Markdown
Contributor

@sylingd sylingd commented May 8, 2026

AMO limits the frequency of API calls. When the limit is exceeded, a 429 error is returned, requiring a retry after a certain period of time. Such as:

image

A new throttled-retry parameter has been added. If the request can be retried (a retry-after header exists) and the retry time is less than the throttled-retry parameter, the request will be re-initiated after waiting for retry-after seconds.


An onStatusChange parameter has been added, allowing users to know the current status when calling the JS API, so they can perform other operations (such as logging).

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