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

Add basic error handling to GraphQL query #124

Merged
merged 1 commit into from
Feb 27, 2023

Conversation

ComputerDruid
Copy link
Contributor

Fixes #123

When I use a fine-grained token now, I get:

thread 'main' panicked at 'API Error 401 Unauthorized: {"documentation_url":"https://docs.github.com/graphql/guides/forming-calls-with-graphql#authenticating-with-graphql","message":"Personal access tokens with fine grained access do not support the GraphQL API"}', src/main.rs:177:13

@tmandry tmandry merged commit cb33e1b into rust-lang:master Feb 27, 2023
@ComputerDruid ComputerDruid deleted the error branch February 28, 2023 01:32
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

Successfully merging this pull request may close these issues.

relnotes doesn't ~~work~~ give a good error message with fine-grained API Token
2 participants