jira-dependency-graph icon indicating copy to clipboard operation
jira-dependency-graph copied to clipboard

HttpError 401 when using JIRA Cloud

Open jfrantzius opened this issue 3 years ago • 4 comments

Hi, as already mentioned in #30 , when using jira-dependency-graph with JIRA cloud, unfortunately an HttpError 401 is received:

Traceback (most recent call last):
  File "/jira/jira-dependency-graph.py", line 302, in <module>
    main()
  File "/jira/jira-dependency-graph.py", line 291, in main
    graph = graph + build_graph_data(issue, jira, options.excludes, options.show_directions, options.directions,
  File "/jira/jira-dependency-graph.py", line 207, in build_graph_data
    return walk(start_issue_key, [])
  File "/jira/jira-dependency-graph.py", line 157, in walk
    issue = jira.get_issue(issue_key)
  File "/jira/jira-dependency-graph.py", line 49, in get_issue
    response.raise_for_status()
  File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 953, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: [..]

That's really a pity, I was so looking forward to see that dependency graph :)

jfrantzius avatar Aug 20 '21 08:08 jfrantzius

@jfrantzius it works for me .... can you send full command that you use? of course with credentials redacted

mpavlikWandera avatar Jun 16 '22 12:06 mpavlikWandera

I didn't get a 401 (used --cookie=<JSESSIONID> for auth), but the rest api is different so the call for issues fails with 404.

Regenhardt avatar May 30 '23 14:05 Regenhardt

I updated my web version to use Jira Cloud, but only for api token auth for now, I broke cookie auth in the process: https://jiragraph.regenhardt.dev

Regenhardt avatar Nov 30 '23 11:11 Regenhardt