Closed ciphersimian closed 1 month ago
Doing a bit more research on this it seems GitHub has a rather low unauthenticated user rate limit of 60 requests/hour/ip. This question and answer gives various options for authentication: https://stackoverflow.com/questions/33655700/github-api-fetch-issues-with-exceeds-rate-limit-prematurely so I guess what is needed here is a way to pass a GitHub auth token to instawow to get the 5000 requests/hour/ip rate limit that authenticated users have.
It would also probably be best if instawow doesn't remove a reconciled addon until the replacement has been successfully installed.
OK, poking around I found that instawow already has a github auth feature, I just had to run through configure again.
With a bit of regex foo I was able to turn the above into a list to feed back into install so I think I'm good now. Perhaps you can still find something worth improving here so I'll leave this open, but if you don't see the value in it feel free and close. Thanks and sorry for all the noise as I worked my way around to a solution.
You can generate a GitHub access token by running instawow configure access_tokens.github
without having to re-configure anything else. This would be worth mentioning in the readme (in addition to the configure
command's help text). I agree that this behaviour is undesirable, but it only becomes an issue during reconciliation. There are some workarounds we might wanna consider, like fetching new add-ons before uninstalling the old ones.
Fixed in v4.3.0.
That only took two years.
This may be more of a question / feature request, but I suspect this is going to be a common issue for anyone coming back for patch 9.2.5 after the CurseForge shutdown of the Twitch API.
When I did the reconcile --installed mentioned in the Pinned issue it found pretty much all the addons I care about on either wowi or github, but then when it went to install at the end the majority of the github ones got a 403, probably just from hitting github too hard and all at once:
Perhaps this can be throttled to prevent this issue? Now I have the problem that it uninstalled all the curse versions, but failed to install the ones above, so I think I'm stuck manually reinstalling each one now?