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
PUT /session to return 401 Invalid credentials, not 401 Invalid password #85
Comments
I'm giving this a go! |
I forked the repository to my GitHub account, cloned it to my computer and ran
The whole things seems to hang now. I'm not behind a proxy AFAIK. |
Weclome @breun, issue is all yours :) I’m looking into the problem now. |
@breun I had no luck, I’m afraid. It might have been a temporary hiccup. Can you try this please:
And post the logs somewhere? It might be quite a lot, so maybe put it in a gist and link it here if possible. |
I updated to npm 2.14.19 and tried again. It doesn't seem to be a temporary hiccup, I already retried twice before and |
What was before |
I’m running a bit out of ideas :/ Did you ever install something with Can you try |
After running I recently also had an issue with git clones done by MacPorts failing because of a certificate issue: https://trac.macports.org/ticket/50469 These issues might have the same root cause (my |
try to uninstall your node & npm entirely, and install it as advised on https://nodejs.org/en/ |
Yeah sorry, no, not gonna do that. I prefer finding and fixing the cause of this issue to starting over with an npm install not managed by a package manager. I have a fix ready though. |
fixed via #86. Thanks a ton @breun 👍 We have more starter issues if you’d like to give it another spin: http://go.hood.ie/hoodie-starter-issues |
I'm actually not doing much JavaScript normally, but I enjoy seeing how this project deals with issues, tests, getting people involved, etc., so I might just fix a few more issues if I can find the time. Thanks for the invite. |
Glad to hear that, thanks for the feedback :) |
|
part of #83
First Timers only
We would like to take the opportunity to invite someone who did not yet contribute to Hoodie to work on this issue. Follow @YourFirstPR on Twitter for more of these issues across many open source projects :)
🐛 The Bug
Our implementation diverges from our JSON API specification. When trying to sign in with a valid username, but invalid password, the server will respond with the message
”Invalid password”
, while the specification says”Invalid credentials”
📋 Steps to fix
”Invalid credentials”
.npm test
. Commit withtest: 401 Invalid password -> 401 Invalid credentials
(If this is your first, welcome 🎉 😄 Here is a great tutorial on how to send a pull request)
fix: 401 Invalid password -> 401 Invalid credentials
Ping us in the Hoodie Chat or on Twitter if you have any questions :)
The text was updated successfully, but these errors were encountered: