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

Errors returned are vague #12

Closed
2 tasks
codingfriend1 opened this issue Jan 8, 2017 · 2 comments
Closed
2 tasks

Errors returned are vague #12

codingfriend1 opened this issue Jan 8, 2017 · 2 comments

Comments

@codingfriend1
Copy link
Contributor

Steps to reproduce

(First please check that this issue is not already solved as described
here
)

  • Tell us what broke. The more detailed the better.
  • If you can, please create a simple example that reproduces the issue and link to a gist, jsbin, repo, etc.

Trying to send a reset password error when your account has not been verified.

Expected behavior

Client should say "User is not verified."

Actual behavior

Server logs say BadRequest: User is not verified.
However client side says "Request failed with status code 400."

System configuration

Feathers Authentication Management 0.1.6

Module versions (especially the part that's not working):
NodeJS version:
v7.4.0
Operating System:
Mac
Browser Version:
Chrome
React Native Version:

Module Loader:
Webpack

@codingfriend1
Copy link
Contributor Author

codingfriend1 commented Jan 8, 2017

Sorry, this was an issue with axios library and not feathers authentication management. In postman it returns the correct error.

@WebbizAdmin
Copy link

WebbizAdmin commented Feb 2, 2018

How do you resolve the AXIOS issue. Im facing the same issue.

EDIT Resolved for me

callApproveWithdrawal(token, id, status, approvedAmount, comments)
    .then((response) => {
      console.log('Response', response);
    })
    .catch((error) => {
      console.log('Error', error.response);
    });

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

2 participants