ConnectionResetError

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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted yesterday in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

59 views 2 2
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