Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 1

INSUFFICIENT_SCOPES with GraphQL API Explorer when querying RegistryPackageConnection

INSUFFICIENT_SCOPES with GraphQL API Explorer when querying RegistryPackageConnection

 

Do I need to generate token for GraphQL API Explorer?

or Do I need to add more scope for GraphQL API Explorer? (I couldn't find this page)

or Do I need to add metadata(?) at query for this request?

 

Request:

query {
  repository(owner: "konlpy", name: "konlpy") {
    registryPackagesForQuery(packageType: DOCKER, first: 100) {
      edges {
        node {
            name
            id
        }
      } 
    }
  }
}

Response:

{
  "errors": [
    {
      "type": "INSUFFICIENT_SCOPES",
      "locations": [
        {
          "line": 11,
          "column": 13
        }
      ],
      "message": "Your token has not been granted the required scopes to execute this query. The 'name' field requires one of the following scopes: ['read:packages'], but your token has only been granted the: ['read:gpg_key', 'read:org', 'read:public_key', 'read:repo_hook', 'repo', 'user'] scopes. Please modify your token's scopes at: https://github.com/settings/tokens."
    },
    {
      "type": "INSUFFICIENT_SCOPES",
      "locations": [
        {
          "line": 12,
          "column": 13
        }
      ],
      "message": "Your token has not been granted the required scopes to execute this query. The 'id' field requires one of the following scopes: ['read:packages'], but your token has only been granted the: ['read:gpg_key', 'read:org', 'read:public_key', 'read:repo_hook', 'repo', 'user'] scopes. Please modify your token's scopes at: https://github.com/settings/tokens."
    }
  ]
}