Skip to content
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

HttpError 401 when using JIRA Cloud #46

Open
jfrantzius opened this issue Aug 20, 2021 · 3 comments
Open

HttpError 401 when using JIRA Cloud #46

jfrantzius opened this issue Aug 20, 2021 · 3 comments

Comments

@jfrantzius
Copy link

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 :)

@mpavlikWandera
Copy link

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

@Regenhardt
Copy link

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

@Regenhardt
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants