Skip to content

List Repositories fails with per_pages=100 #1037

Description

@ahmetb
curl -vH "Accept: application/vnd.github.scarlet-witch-preview+json, application/vnd.github.mercy-preview+json" \
    https://api.github.com/users/kubernetes/repos\?page\=1\&per_page\=100

request takes 10 seconds and fails with HTTP 502 Bad Gateway and body:

{
  "message": "Server Error"
}

I know this is really a GitHub API issue (I just reported to GitHub) but it seems like it's reproducibly happening with these Accept header values injected by go-github by default:

  • application/vnd.github.scarlet-witch-preview+json
  • application/vnd.github.mercy-preview+json

removing the Accept makes the request succeed just fine. So maybe go-github shouldn't use these headers by default, yet?

Activity

  1. gauntface commented on Nov 6, 2018

    @gauntface
    Contributor

    This is the same issue as #999

    @ahmetb would be great if you could comment on the proposals in that bug.

  2. gmlewis commented on Nov 6, 2018

    @gmlewis
    Collaborator

    Closing so that discussion can continue in #999.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions