Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

SyntaxError: Expected at least one entry to match .code-list-item #17

Closed
palfrey opened this issue Oct 8, 2021 · 3 comments
Closed

Comments

@palfrey
Copy link

palfrey commented Oct 8, 2021

While looking at https://github.com/search?q=extension%3Ajanet+NOT+nothack&type=Code
Screenshot 2021-10-08 at 18 08 45

@palfrey
Copy link
Author

palfrey commented Oct 8, 2021

This was with running await harvest() but await harvest("extension:janet", "NOT nothack") was looking more fruitful but then I hit #16 (comment)

@Alhadis
Copy link
Owner

Alhadis commented Oct 12, 2021

This is happening because GitHub's servers are responding with an empty search-result page, indicating that its abuse detection mechanism has been triggered. Exactly what triggers this is a mystery to me—until recently, it was purely a matter of request rates (hence the throttled loading).

I know it's frustrating, but there's nothing I can do short of rewrite this crappy script to use GitHub's APIs like users are supposed to (see #15). It's high on my to-do list, but lately I've had limited time to spend on coding. Sorry. 😞 Don't think I've forgotten or overlooked this issue, though.

@lpil
Copy link

lpil commented Nov 9, 2021

I've written a script that does as you've suggested there and I've also started to have these problems in the last few months. Sometimes the API will just say there's no more results, even when I know there it and am querying far below the rate limit. I'm not sure it's possible to count repos for a language any more using this API.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants