Open thearifismail opened 1 year ago
I tried to follow the information provided in issue #250 but no success yet.
This problem is authentication failure, which is very likely is being caused by mixup of how user, username, login, password, and/ or api-token should be used.
I hit this myself yesterday. Add three --verbose
arguments into the command line so you see the HTTP interactions. You'll be seeing a HTML unauthorised response probably like this:
<html>
<head>
<title>Unauthorized (401)</title>
The invalid character '<' looking for beginning of value
is it choking in the HTML stream.
I'm successfully using PAT tokens (authentication-method: bearer-token) with issues.redhat.com but I needed to build from source (main) to pick up changes that include the support.
HTH
I am trying to write some go code to fetch JIRA issues from our internal JIRA deployment. No such problem is encountered when using Python. I am very new to "GO" and thinking running Jira query should provide an easy ramp. Hopefully someone can spot the mistake I am making.
The error is the same when I did the following. The actual project name has been replaced by
<PROJECT_NAME>
in this submission:jira search
jira list --query="project=<PROJECT_NAME> AND resolution = Unresolved AND assignee = currentUser()"
jira list --query="resolution+=+Unresolved+AND+assignee+=+currentUser()"
. This query was provided by Firefox's "Web Developer Tools"jira list --template table --query="project=<PROJECT_NAME> AND resolution = Unresolved AND assignee = currentUser()"
The project name is specified in
~/.jira.d/config.yml
and usingJIRA_API_TOKEN
because ofauthentication-method: api-token
.Here is
~/.jira.d/config.yml
:Here is the full console output for the commands provided above: