Open sayanee opened 7 years ago
There are two places when multiple Github requests are in flight at the same time.
https://github.com/webuildorg/webuild-repos/blob/master/repos/index.js#L286
and
https://github.com/webuildorg/webuild-repos/blob/master/repos/index.js#L216
... these need to be serialised to a certain extent.
Using something like https://github.com/charto/cwait could help to limit the number of calls being done in parallel.
More information:
It looks like there were
634
concurrent requests made via the We Build OAuth application (at the time we made the log query, last Friday -3 days) via the user agent NodeJSHTTP Client.
If no one is working on this, I could give it a shot. ✌️😊
We're also seeing this:
Error for https://github.com/isovic/graphmap: {
"documentation_url": "https://developer.github.com/v3/#abuse-rate-limits",
"message": "You have triggered an abuse detection mechanism. Please wait a few minutes before you try again."
}
Error for https://github.com/stepango/Archetype: {
"documentation_url": "https://developer.github.com/v3/#abuse-rate-limits",
"message": "You have triggered an abuse detection mechanism. Please wait a few minutes before you try again."
}
Error for https://github.com/Yaoshicn/decaptcha: {
"documentation_url": "https://developer.github.com/v3/#abuse-rate-limits",
"message": "You have triggered an abuse detection mechanism. Please wait a few minutes before you try again."
}
Error for https://github.com/MugunthKumar/MKStoreKit: {
"documentation_url": "https://developer.github.com/v3/#abuse-rate-limits",
"message": "You have triggered an abuse detection mechanism. Please wait a few minutes before you try again."
}
So I'd like to write some tests so I know my implementation works, but it seems like the code isn't currently being tested. What's the best way to test this?
I was thinking I could maybe stub everything and listen to the Promise calls. Any suggestions? Or would you prefer I submit my changes (dare I say it) without tests? 🙀
haha just send whatever you have in a pull request to a branch and then we can chat on the code / whether to test? 😉
Thank you @jsstrn 🤗