Comments (6)
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.
Thanks for the extra info, I'll look into it
from v20-python.
When?
from v20-python.
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.
Mid-week as in today?
from v20-python.
Should be there now, thanks for you patience.
from v20-python.
Related Issues (20)
- Instrument Accept-Datetime-Format Bug HOT 2
- Exception when converting to UNIX time under Windows
- position.close(): status 400 > "invalid JSON body, must be an object" HOT 2
- Floats and integers are returned as strings
- Poor documentation and example code HOT 5
- pip install v20 error HOT 1
- v20.instrument.orderBook not implemented HOT 14
- How do I replace an Order (Python) HOT 1
- Limit Order Bad Request HOT 2
- wat to get history HOT 1
- Pricing stream not working for demo account HOT 1
- HTTP 502 error when trying to access order book on practice account HOT 3
- Candlestick dates do not seem to be aligned properly at daily granularity
- Support Python `Decimal`
- Request missing AccountID HOT 2
- THIS PROJECT IS ABONDONED
- Stream candle Data
- It seems no document about the v20.functions HOT 3
- Syntax Warning
- pip raises DEPRECATION: v20 is being installed using the legacy 'setup.py install' method HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from v20-python.