Changing config on existing profile error
Closed this issue · 5 comments
~ ⍉ ➜ jira config
Jira URL: https://some.atlassian.net
Username: admin
Password:
Information stored!
~ ➜ jira ls
Error: got 401 response
~ ➜ rm -rf ~/.jira/config.json
~ ⍉ ➜ jira config
[TypeError: callback is not a function]
Hi @micrub. Thanks for opening this issue!
Can you provide more details? I just tried it and everything works correct in my case.
If you got a 401 response that means you've provided bad credentials. I tried the same as you pasted and after removing the config file I can't reproduce that [TypeError]
.
Can you share your node.js/npm version and OS?
Thanks
@germanrcuriel Big thanks for really useful cli tool! It seems that issue happens when ~/.jira/config.json
contains non valid token caused by some bug in authentication process handling, which allows to save non valid token. When you remove the file and authenticate properly, in my case my password was actually wrong and changed it, it works well. Try to authenticate with wrong password while not having ~/.jira/config.json
.
@micrub Oh, I will try that then. Not a big issue but this is something that should be fixed. Thanks :)
@germanrcuriel True. Not major, but can confuse user.
If you are still facing the issue please feel free to reopen the issue, and we'll solve it together : ) .