Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection broken during the export #132

Open
largui opened this issue May 2, 2024 · 2 comments
Open

connection broken during the export #132

largui opened this issue May 2, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@largui
Copy link

largui commented May 2, 2024

I got this issue after 20 minutes with no result for page 3

<Response [200]> ::downloading issues at page: 0 of 12
<Response [200]> ::downloading issues at page: 1 of 12
<Response [200]> ::downloading issues at page: 2 of 12

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 685, in _update_chunk_length
self.chunk_left = int(line, 16)
ValueError: invalid literal for int() with base 16: b''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 685, in _update_chunk_length
self.chunk_left = int(line, 16)
ValueError: invalid literal for int() with base 16: b''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 425, in _error_catcher
yield
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 752, in read_chunked
self._update_chunk_length()
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 689, in _update_chunk_length
raise httplib.IncompleteRead(line)
http.client.IncompleteRead: IncompleteRead(0 bytes read)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/models.py", line 750, in generate
for chunk in self.raw.stream(chunk_size, decode_content=True):
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 560, in stream
for line in self.read_chunked(amt, decode_content=decode_content):
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 781, in read_chunked
self._original_response.close()
File "/usr/lib/python3.8/contextlib.py", line 131, in exit
self.gen.throw(type, value, traceback)
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 443, in _error_catcher
raise ProtocolError("Connection broken: %r" % e, e)
urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "exportcsvfulldwp_7.py", line 19, in
issue_export(jql=jql, extension="csv", fields=fields, final_file="/scripts/Python/backup7"+d1)
File "/home/sleondelarosa/.local/lib/python3.8/site-packages/jiraone/reporting.py", line 4006, in export_issues
download_csv() if not merge_files else config.update(
File "/home/sleondelarosa/.local/lib/python3.8/site-packages/jiraone/reporting.py", line 3968, in download_csv
LOGIN.get(
File "/home/sleondelarosa/.local/lib/python3.8/site-packages/jiraone/access.py", line 418, in get
response = requests.get(
File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 688, in send
r.content
File "/usr/lib/python3/dist-packages/requests/models.py", line 828, in content
self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''
File "/usr/lib/python3/dist-packages/requests/models.py", line 753, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))

Any idea I got sometimes this issue?

Thanks and regards,
Sergio

@huyz
Copy link
Contributor

huyz commented May 2, 2024

I've gotten these quite a few times and I just re-ran it was fine. I just assumed to either Atlassian throttling or overloaded servers.

@princenyeche princenyeche self-assigned this May 4, 2024
@princenyeche princenyeche added the question Further information is requested label May 4, 2024
@princenyeche
Copy link
Owner

@largui I'm not sure but it seems like a network error, trying again as suggested by @huyz would be a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants