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 Join to answer
Community showcase
Louis De Jaeger
Posted Thursday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

189 views 12 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot