Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Python command jira.search_issues: Warning Connection aborted Edited

Hi,
I run the following code and I get many Warnings. Finally the results goes out but it seems particularly slow.

 

from jira import JIRA
import urllib3

if __name__ == "__main__":
loginJira = sys.argv[1]
passwordJira = sys.argv[2]
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
options = {"server": "https://jira.mycloud.xxx.com", "verify": False}

jira = JIRA(options, basic_auth=(loginJira, passwordJira))

print(f"---- Loading issues from JIRA ---- {str(datetime.datetime.now())}")
issues = jira.search_issues('project=PCKINO or project=PCKBAU or project=NEX', maxResults=False)

 The data get extracted when I run that, but I also get Warnings that keep repeating:

WARNING:root:('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',)) while doing GET https://jira.mycloud.xxx.com/rest/api/2/search [{'params': {'jql': 'project=PCKINO or project=PCKBAU or project=NEX', 'startAt': 1250, 'validateQuery': True, 'fields': [], 'expand': None, 'maxResults': 50}, 'headers': {'User-Agent': 'python-requests/2.25.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json,*.*;q=0.9', 'Connection': 'keep-alive', 'Cache-Control': 'no-cache', 'Content-Type': 'application/json', 'X-Atlassian-Token': 'no-check'}}]

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you