-
Notifications
You must be signed in to change notification settings - Fork 83
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
pixiv rank Rate Limit? #397
Comments
I often encounter this problem too. |
Rate limiting is Pixiv first-party is limiting your API requests to their server. You can configure multiple accounts to make load balance if there does have a large amount request. In this case, you may need preventing your instance from frequently restarting or using external caching (e.g. DiskCache or Redis) instead of in memory caching. For more information about caching, see #114 and #380. I don't know if there is an IP-addresses based rate limit or something similar has been applied recently. It is completely black box for us. Increase caching size or adding more account to load-balancing (see comments in config file) request may help.
I haven't touched code for a time, but I remember there should be another error if the token became invalid.
There does have a token refreshing operation. Access Token will be refreshed after it expires (lazy refreshing, i.e. check if expired locally at each request and does refresh if it expired), by Refresh Token. Refresh Token, however, should last more than one year if there are no manually logout operation, so that does not require frequently rotate. (and it can't be rotated automatically since there are a few captchas / firewalls existed). |
What is this?
The text was updated successfully, but these errors were encountered: