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

Better error messages from the credential server #206

Merged
merged 1 commit into from May 14, 2018

Conversation

@diracdeltas
Copy link
Member

diracdeltas commented May 14, 2018

The credential server returns 200 no matter what, so errors due to
invalid credentials will propagate until protobufjs thorws an error.

This changes it to return 401 whenever credentials cannot be generated.

Test plan:

  1. npm start
  2. npm run browsertest (which is currently failing)
  3. in the error messages, you should see '401 unauthorized' instead of
    a protobuf error.
The credential server returns 200 no matter what, so errors due to
invalid credentials will propagate until protobufjs thorws an error.

This changes it to show 401 whenever credentials cannot be generated.

Test plan:
1. npm start
2. npm run browsertest (which is currently failing)
3. in the error messages, you should see '401 unauthorized' instead of
   a protobuf error.
@diracdeltas diracdeltas self-assigned this May 14, 2018
@diracdeltas diracdeltas requested a review from SergeyZhukovsky May 14, 2018
@SergeyZhukovsky
Copy link
Member

SergeyZhukovsky commented May 14, 2018

++

Copy link
Member

SergeyZhukovsky left a comment

++

@diracdeltas diracdeltas merged commit f3f66f0 into staging May 14, 2018
0 of 2 checks passed
0 of 2 checks passed
continuous-integration/travis-ci/pr The Travis CI build could not complete due to an error
Details
continuous-integration/travis-ci/push The Travis CI build could not complete due to an error
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.