Giter Club home page Giter Club logo

Comments (6)

alekna avatar alekna commented on August 24, 2024

And here it happened again.

As I understand this happens during the maintenance when you take down API servers or load-balancers, or both.

Please wrap those additional exceptions under V20ConnectionError.

2016-11-25T23:42:31.118060000Z Traceback (most recent call last):
2016-11-25T23:42:31.118243000Z   File "/usr/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 451, in _update_chunk_length
2016-11-25T23:42:31.175740000Z     self.chunk_left = int(line, 16)
2016-11-25T23:42:31.175898000Z ValueError: invalid literal for int() with base 16: b''
2016-11-25T23:42:31.176170000Z During handling of the above exception, another exception occurred:
2016-11-25T23:42:31.176414000Z Traceback (most recent call last):
2016-11-25T23:42:31.176523000Z   File "/usr/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 232, in _error_catcher
2016-11-25T23:42:31.176630000Z     yield
2016-11-25T23:42:31.176737000Z   File "/usr/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 502, in read_chunked
2016-11-25T23:42:31.176852000Z     self._update_chunk_length()
2016-11-25T23:42:31.176964000Z   File "/usr/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 455, in _update_chunk_length
2016-11-25T23:42:31.177748000Z     raise httplib.IncompleteRead(line)
2016-11-25T23:42:31.177873000Z http.client.IncompleteRead: IncompleteRead(0 bytes read)
2016-11-25T23:42:31.178107000Z During handling of the above exception, another exception occurred:
2016-11-25T23:42:31.178359000Z Traceback (most recent call last):
2016-11-25T23:42:31.178472000Z   File "/usr/lib/python3.5/site-packages/requests/models.py", line 676, in generate
2016-11-25T23:42:31.196889000Z     for chunk in self.raw.stream(chunk_size, decode_content=True):
2016-11-25T23:42:31.197068000Z   File "/usr/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 353, in stream
2016-11-25T23:42:31.197189000Z     for line in self.read_chunked(amt, decode_content=decode_content):
2016-11-25T23:42:31.197309000Z   File "/usr/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 530, in read_chunked
2016-11-25T23:42:31.197485000Z     self._original_response.close()
2016-11-25T23:42:31.197630000Z   File "/usr/lib64/python3.5/contextlib.py", line 77, in __exit__
2016-11-25T23:42:31.219085000Z     self.gen.throw(type, value, traceback)
2016-11-25T23:42:31.219253000Z   File "/usr/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 250, in _error_catcher
2016-11-25T23:42:31.219386000Z     raise ProtocolError('Connection broken: %r' % e, e)
2016-11-25T23:42:31.219500000Z requests.packages.urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))
2016-11-25T23:42:31.219767000Z During handling of the above exception, another exception occurred:
2016-11-25T23:42:31.219993000Z Traceback (most recent call last):
2016-11-25T23:42:31.220102000Z   File "/app/proxy.py", line 84, in <module>
2016-11-25T23:42:31.226892000Z     main()
2016-11-25T23:42:31.227023000Z   File "/app/proxy.py", line 65, in main
2016-11-25T23:42:31.227146000Z     for msg_type, msg in response.parts():
2016-11-25T23:42:31.227267000Z   File "/usr/lib/python3.5/site-packages/v20/response.py", line 52, in parts
2016-11-25T23:42:31.235043000Z     for line in self.lines:
2016-11-25T23:42:31.235195000Z   File "/usr/lib/python3.5/site-packages/requests/models.py", line 720, in iter_lines
2016-11-25T23:42:31.235313000Z     for chunk in self.iter_content(chunk_size=chunk_size, decode_unicode=decode_unicode):
2016-11-25T23:42:31.235444000Z   File "/usr/lib/python3.5/site-packages/requests/models.py", line 679, in generate
2016-11-25T23:42:31.235555000Z     raise ChunkedEncodingError(e)
2016-11-25T23:42:31.235680000Z requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))

from v20-python.

dmpettyp avatar dmpettyp commented on August 24, 2024

Thanks for the extra info, I'll look into it

from v20-python.

alekna avatar alekna commented on August 24, 2024

When?

from v20-python.

dmpettyp avatar dmpettyp commented on August 24, 2024

I'm sorry, these changes have been completed but they got caught up in a larger effort to release the spec as an OpenAPI specification. All of this should go out mid-week.

from v20-python.

alekna avatar alekna commented on August 24, 2024

Mid-week as in today?

from v20-python.

dmpettyp avatar dmpettyp commented on August 24, 2024

Should be there now, thanks for you patience.

from v20-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.