Skip to content
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

make everyone command isn't working for me #15

Open
jmona789 opened this issue Nov 8, 2022 · 5 comments
Open

make everyone command isn't working for me #15

jmona789 opened this issue Nov 8, 2022 · 5 comments

Comments

@jmona789
Copy link

jmona789 commented Nov 8, 2022

I keep getting these errors when I try to make everybody command.

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 549k 100 549k 0 0 435k 0 0:00:01 0:00:01 --:--:-- 436k
./follow-everybody.bash: line 11: jq: command not found
./follow-everybody.bash: line 20: jq: command not found

@jmona789
Copy link
Author

jmona789 commented Nov 8, 2022

Had to brew install jq and that fixed that error but now I'm getting this one:

jq: error (at <stdin>:1): Cannot index string with string "full_name"

@GandalfPotter
Copy link

GandalfPotter commented Nov 8, 2022

same sequence of problems happened to me too. its not a problem with jq, but a problem with the curl command that is ran previously. (tbh i dont really know what it means).

output from curl https://api.github.com/repos/diracdeltas/tweets/forks?per_page=100&page=$page_num > ur_mom:

l{"message":"API rate limit exceeded for %my ip address lol% . (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}

@jmona789
Copy link
Author

jmona789 commented Nov 8, 2022

Yea, I figured it out I was being rate limited because the make command keeps hitting the forks endpoint to try and pull all of the forks. Was able to fix it by using a VPN.

@GandalfPotter If you have a VPN try using that and then re-running the make command, otherwise you may just have to wait a while, (I think an hour judging by their docs) for GitHub to reset your limit so you can request the forks endpoint again. So if you don't have a VPN wait an hour and then re-run the make everybody command

@GandalfPotter
Copy link

ok that clears things up, thx!

@sanasol
Copy link

sanasol commented Nov 8, 2022

Create personal token
https://github.com/settings/tokens?type=beta

Add header with token to follow script.

-H "Authorization: token YOUR_TOKEN_HERE"

Like this:

results=$(curl -H "Accept: application/vnd.github+json" -H "Authorization: token YOUR_TOKEN_HERE" "https://api.github.com/repos/diracdeltas/tweets/forks?per_page=100&page=$page_num")

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

No branches or pull requests

3 participants