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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
But this does not solve the issue. I have a 10 retry with 5 sec sleep but still I get this error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.