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

Wrong Status Error #110

Closed
hnordt opened this Issue Mar 22, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@hnordt
Copy link

hnordt commented Mar 22, 2016

When I use the following auth hooks:

[
  verifyToken(),
  populateUser(),
  requireAuth()
]

And don't provide an Authorization header I receive a 500 error:

untitled_paw_document

Instead I should receive a 401 error.

@ekryski

This comment has been minimized.

Copy link
Member

ekryski commented Mar 22, 2016

@hnordt If you look in the log you are receiving that is a 401.

NotAuthenticated: Please include a valid auth....

Is your Accept header set to application/json? Otherwise it just renders an html error.

@hnordt hnordt closed this Mar 22, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.