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

Improve error reporting when API server authorization fails #41

Open
mlwilkerson opened this issue Jan 26, 2022 · 0 comments
Open

Improve error reporting when API server authorization fails #41

mlwilkerson opened this issue Jan 26, 2022 · 0 comments

Comments

@mlwilkerson
Copy link
Member

Sometimes, there's this error on the JavaScript console, when using a Kit:

Font Awesome Icon Chooser GraphQL query errors

The body of the HTTP response is:

{"data":{"me":null},"errors":[{"locations":[{"column":9,"line":3}],"message":"unauthorized","path":["me"]}]}

Because this issue is apparently specific to authorization, and that can be discovered from the JSON data in the HTTP response, it may be better to indicate the cause of the problem as authorization.

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