gatsby-github-displayer
gatsby-github-displayer copied to clipboard
Getting 401 error with GITHUB_TOKEN
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?