[languages -> totalSize] Same Query will sometimes fail – Bug


#1

Hey there.
For a little project I am currently trying to get as much data as possible about repositories to analyze later on.

I am just getting started with GraphQL but noticed that the same query will work with some variables (userName and repoName) but not with others. The error with its error code looks like some internal problem. ~60%+ failure rate out of 58 repositories requested so far with 18s delay to avoid the rate limit.
Just in case: Queries are tested via Node POST and GraphiQL. Identical results.

Trial and error shows that at least sometimes the languages -> totalSize attribute is responsible

  • any way for me to check the status? Is the early access stuff not covered via the normal API status. Did not yet look for ways to identify why it sometimes works fine (returning null?)
  • is this known, as in, can I read up on known problems and things to avoid? Didn’t find anything so far
  • where can I submit stuff like this? This forum?
  • as you can see in the comments of the query it is apparently not the only attribute causing trouble

https://github.com/nchennam/Spark-Module

=> going through without problems

https://github.com/qiaoyingjs201508/Front-end-Interview-questions

=> “Something went wrong while executing your query. This is most likely a GitHub bug. Please include “369DD8BD:4BBA:1B2A70AC:5840B181” when reporting this issue.”

query:

query ($userName: String!, $repoName: String!){

repositoryOwner(login: $userName) {

repository(name: $repoName) {
  createdAt
  description
  url
  homepageURL
  isFork
  name
  parent {
    url
  }
  pushedAt
  updatedAt
  releases(first: 30) {
    totalCount
    edges {
      node {
        name
      }
    }
  }
  pullRequests(first:30) {
    totalCount
    edges {
      node {
        title
        body
        number
        
        #timeline(first:30) {
        #  edges {
        #   node {      
        #    }
        #  }
        #}
      }
    }
  }
  issues(first:30) {
    totalCount
    edges {
      node {
        title
        state
        body
        number
      }
    }
  }
  # useless?
  commitComments (first:30) {
    # not working
    # totalCount
    edges {
      node {
        author {
          name
        }
        body
        commit {
          url
        }
        
      }
    }
  }
  forks(first:30) {
    totalCount
    edges {
      node {
        url
      }
    }
    
  }
  # TODO: add project?
  # project
  labels {totalCount}
  languages (first:30){
    totalCount
    edges {
      node {
        color
        name
      }
      size
    }
  # totalSize
  }
  milestones (first:30){
    totalCount
    edges {
      cursor
      node {
        description
        number
        title
        createdBy {
          name
        }
        
      }
    }
  }
  stargazers {
    totalCount
  }
  watchers {
    totalCount
  }
}

}
}