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

Getting 401 error with GITHUB_TOKEN #1

Open
gouravsood opened this issue Aug 25, 2018 · 0 comments
Open

Getting 401 error with GITHUB_TOKEN #1

gouravsood opened this issue Aug 25, 2018 · 0 comments

Comments

@gouravsood
Copy link

Hi, thanks for creating this app to showcase the use of gatsby-source-graphql. I am trying to run this app at local using the generated personal access token from https://github.com/settings/tokens. But I am getting 401 with this token.

The GraphQL query from /Users/gsood/Desktop/Gourav/mywork/dev/Own/gatsby-sample/gatsby-github-displayer/src/pages/index.js failed.

Errors:
  Response not successful: Received status code 401
URL path:
  /
Context:
  {}
Plugin:
  none
Query:
  query RepositoriesQuery {
    github {
      viewer {
        repositories(privacy: PUBLIC, affiliations: OWNER, isFork: false, first: 100) {
          nodes {
            name
            url
          }
        }
      }
    }
  }

Can you please confirm how you generated the GITHUB_TOKEN?

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

1 participant