Created
April 16, 2014 11:12
-
-
Save ingydotnet/10854438 to your computer and use it in GitHub Desktop.
Bug in API stargazers response header
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > curl --silent https://api.github.com/repos/aocole/skill-shot-list/stargazers?per_page=10 --dump-header head; echo; grep -E '^Link: ' head | |
| [ | |
| { | |
| "login": "ingydotnet", | |
| "id": 21826, | |
| "avatar_url": "https://avatars.githubusercontent.com/u/21826?", | |
| "gravatar_id": "8b3bd89d842c858bea279637e34b4382", | |
| "url": "https://api.github.com/users/ingydotnet", | |
| "html_url": "https://github.com/ingydotnet", | |
| "followers_url": "https://api.github.com/users/ingydotnet/followers", | |
| "following_url": "https://api.github.com/users/ingydotnet/following{/other_user}", | |
| "gists_url": "https://api.github.com/users/ingydotnet/gists{/gist_id}", | |
| "starred_url": "https://api.github.com/users/ingydotnet/starred{/owner}{/repo}", | |
| "subscriptions_url": "https://api.github.com/users/ingydotnet/subscriptions", | |
| "organizations_url": "https://api.github.com/users/ingydotnet/orgs", | |
| "repos_url": "https://api.github.com/users/ingydotnet/repos", | |
| "events_url": "https://api.github.com/users/ingydotnet/events{/privacy}", | |
| "received_events_url": "https://api.github.com/users/ingydotnet/received_events", | |
| "type": "User", | |
| "site_admin": false | |
| }, | |
| { | |
| "login": "scottwainstock", | |
| "id": 179757, | |
| "avatar_url": "https://avatars.githubusercontent.com/u/179757?", | |
| "gravatar_id": "16eea34575c83d20183bf887531801a6", | |
| "url": "https://api.github.com/users/scottwainstock", | |
| "html_url": "https://github.com/scottwainstock", | |
| "followers_url": "https://api.github.com/users/scottwainstock/followers", | |
| "following_url": "https://api.github.com/users/scottwainstock/following{/other_user}", | |
| "gists_url": "https://api.github.com/users/scottwainstock/gists{/gist_id}", | |
| "starred_url": "https://api.github.com/users/scottwainstock/starred{/owner}{/repo}", | |
| "subscriptions_url": "https://api.github.com/users/scottwainstock/subscriptions", | |
| "organizations_url": "https://api.github.com/users/scottwainstock/orgs", | |
| "repos_url": "https://api.github.com/users/scottwainstock/repos", | |
| "events_url": "https://api.github.com/users/scottwainstock/events{/privacy}", | |
| "received_events_url": "https://api.github.com/users/scottwainstock/received_events", | |
| "type": "User", | |
| "site_admin": false | |
| } | |
| ] | |
| Link: <https://api.github.com/repositories/6119949/stargazers?per_page=10&page=2>; rel="next", <https://api.github.com/repositories/6119949/stargazers?per_page=10&page=4000>; rel="last" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The replication above shows that the stargazers endpoint reports a "next" Link, even though there is no more data to report.
Note: Found this bug while debugging this command:
using the git-hub commandline tool.
See: https://github.com/ingydotnet/git-hub#readme