Skip to content

Instantly share code, notes, and snippets.

@magicalraccoon
Created May 8, 2017 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magicalraccoon/9618d3c8aa9aa45bd990bdd2660ee16f to your computer and use it in GitHub Desktop.
Save magicalraccoon/9618d3c8aa9aa45bd990bdd2660ee16f to your computer and use it in GitHub Desktop.
Tootstream crash, overnight stream
Traceback (most recent call last):
File "/usr/lib64/python3.5/http/client.py", line 541, in _get_chunk_left
chunk_left = self._read_next_chunk_size()
File "/usr/lib64/python3.5/http/client.py", line 508, in _read_next_chunk_size
return 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/lib64/python3.5/http/client.py", line 573, in _readinto_chunked
chunk_left = self._get_chunk_left()
File "/usr/lib64/python3.5/http/client.py", line 543, in _get_chunk_left
raise IncompleteRead(b'')
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.5/site-packages/requests/packages/urllib3/response.py", line 203, in read
data = self._fp.read(amt)
File "/usr/lib64/python3.5/http/client.py", line 448, in read
n = self.readinto(b)
File "/usr/lib64/python3.5/http/client.py", line 478, in readinto
return self._readinto_chunked(b)
File "/usr/lib64/python3.5/http/client.py", line 589, in _readinto_chunked
raise IncompleteRead(bytes(b[0:total_bytes]))
http.client.IncompleteRead: IncompleteRead(131 bytes read)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/requests/models.py", line 655, in generate
for chunk in self.raw.stream(chunk_size, decode_content=True):
File "/usr/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 273, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/usr/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 231, in read
raise ProtocolError('Connection broken: %r' % e, e)
requests.packages.urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(131 bytes read)', IncompleteRead(131 bytes read))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "toot.py", line 985, in <module>
main()
File "/usr/lib/python3.5/site-packages/click-6.6-py3.5.egg/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3.5/site-packages/click-6.6-py3.5.egg/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.5/site-packages/click-6.6-py3.5.egg/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.5/site-packages/click-6.6-py3.5.egg/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "toot.py", line 981, in main
cmd_func(mastodon, rest)
File "toot.py", line 497, in stream
mastodon.user_stream(toot_listener)
File "/usr/lib/python3.5/site-packages/Mastodon.py-1.0.7-py3.5.egg/mastodon/Mastodon.py", line 726, in user_stream
File "/usr/lib/python3.5/site-packages/Mastodon.py-1.0.7-py3.5.egg/mastodon/Mastodon.py", line 889, in __stream
File "/usr/lib/python3.5/site-packages/Mastodon.py-1.0.7-py3.5.egg/mastodon/streaming.py", line 53, in handle_stream
File "/usr/lib/python3.5/site-packages/requests/models.py", line 695, in iter_lines
for chunk in self.iter_content(chunk_size=chunk_size, decode_unicode=decode_unicode):
File "/usr/lib/python3.5/site-packages/requests/models.py", line 658, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(131 bytes read)', IncompleteRead(131 bytes read))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment