jira: WARNING:root:Got recoverable error from GET

These retries slow down our integration tests. Any idea why? Is it concurrent auths?

21:05:51 WARNING:root:Got recoverable error from GET https://${ORG}.atlassian.net/rest/api/2/serverInfo, will retry [1/3] in 12.1101162796s. Err: 401 Unauthorized
21:06:03 WARNING:root:Got recoverable error from GET https://${ORG}.atlassian.net/rest/api/2/serverInfo, will retry [2/3] in 26.5554750648s. Err: 401 Unauthorized
21:06:30 WARNING:root:Got recoverable error from GET https://${ORG}.atlassian.net/rest/api/2/serverInfo, will retry [3/3] in 24.2805575368s. Err: 401 Unauthorized

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 39 (3 by maintainers)

Most upvoted comments

As some above have stated, using an API token will work (for JIRA Cloud).

  1. Create an API token here: https://id.atlassian.com/manage/api-tokens
  2. Use your email address as the username
  3. Use the token value as the password

I found a solution that works. I use a one-liner and include the basic_auth before calling the options. It looks like this:

from jira import JIRA
import re

jira = JIRA(basic_auth=('un', 'pwd'), options={'server':'https://myservername.org'})

I have same problem

for me the issue was that JIRA no longer accepts the username as login. Only the e-mail-address

I had the same issue, and realized my JIRA account was using SSO (via Google). In their docs, Atlassian states

If you use two-step verification to authenticate with your Atlassian Cloud site, then your script will need to use a REST API token to authenticate.

Simply creating an API token and using that instead of the password allowed my script to authenticate just fine.