I use python for jira api calls, when im trying to get about 1000-1500 issues it throws me a "ConnectionResetError".

WARNING:root:('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)) while doing GET https://xxxxx/rest/api/2/search [{'params': {'validateQuery': True, 'expand': None, 'jql': 'my query here', 'startAt': 0, 'maxResults': 10000, 'fields': []}, 'headers': {'Accept-Encoding': 'gzip, deflate', 'X-Atlassian-Token': 'no-check', 'Cache-Control': 'no-cache', 'User-Agent': 'python-requests/2.11.1', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Accept': 'application/json,*.*;q=0.9'}}]

I think it is unable to reurtn results with the current timeout settings.

Is there a way to increase the timeout settings ?

P.S. I can't narrow down the search queary.

1 answer

1 accepted

This widget could not be displayed.

A 10054 error means there is already an active connection at the place of error and you open a second connection. It thinks its a denial of service attack. Try Implementing a sleep command into the call.

Thanks for the response Edwin. It worked in most of the cases.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

67 views 0 1
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you