401 error when listing issues
See original GitHub issueExpected
- setup with
jira
- able to view active issues with
jira ls
.
Actual
- setup with
jira
is successful (entering site address/username/password) - the following error is received when running
jira ls
(both powershell and cmd). I have at least 8 issues assigned to me in Jira.
jira ls
(node:25112) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:25112) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
Error: got 401 response
at Response.toError (C:\Users\<username>\AppData\Roaming\npm\node_modules\cmd-jira\node_modules\superagent\lib\node\response.js:100:13)
at Response.setStatusProperties (C:\Users\<username>\AppData\Roaming\npm\node_modules\cmd-jira\node_modules\superagent\lib\node\response.js:179:12)
at new Response (C:\Users\<username>\AppData\Roaming\npm\node_modules\cmd-jira\node_modules\superagent\lib\node\response.js:40:8)
at IncomingMessage.<anonymous> (C:\Users\<username>\AppData\Roaming\npm\node_modules\cmd-jira\node_modules\superagent\lib\node\index.js:712:22)
at IncomingMessage.emit (events.js:326:22)
at endReadableNT (_stream_readable.js:1244:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
status: 401
}
No issues
System info
- Windows 10 pro
- jira-cmd vv0.5.4
- npm v6.14.6
Further research
From some googling, I found this thread.
- I tried logging in with just the first part of my email address, before the @ symbol
- I received the same error.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
401 Error: 5 Ways to Troubleshoot and Fix It - Hostinger
The 401 Unauthorized error is triggered by unauthenticated requests made to a WordPress web server. Learn how to identify and fix the issue....
Read more >401 Unauthorized Error: What It Is and How to Fix It
The 401 Unauthorized Error is an HTTP response status code indicating that the client could not authenticate a request.
Read more >401 Unauthorized - HTTP - MDN Web Docs
The HyperText Transfer Protocol (HTTP) 401 Unauthorized response status code indicates that the client request has not been completed ...
Read more >A Useful Guide to Diagnosing and Solving the 401 Error
It can be extremely frustrating to encounter a 401 error, whether it's your or not. Here's a useful guide to getting around the...
Read more >How to Fix a 401 Unauthorized Error - Lifewire
A 401 Unauthorized code indicates some sort of issue tied to login credentials for a given web page, while 403 Forbidden errors mean...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
BTW, still getting the warning about setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to 0. Anything I can do to suppress or fix this? I tried setting it to 1 in powershell:
But the warning still shows up when running
jira ls
etc.I’ll be creating a new issue to track handling of this warning.