I'm using get_all_values() function which some times throws an error
content = worksheet.get_all_values()
File "/usr/local/lib/python2.7/dist-packages/gspread/models.py", line 339, in get_all_values
cells = self._fetch_cells()
File "/usr/local/lib/python2.7/dist-packages/gspread/models.py", line 226, in _fetch_cells
feed = self.client.get_cells_feed(self)
File "/usr/local/lib/python2.7/dist-packages/gspread/client.py", line 251, in get_cells_feed
return ElementTree.fromstring(r.read())
File "/usr/lib/python2.7/httplib.py", line 541, in read
return self._read_chunked(amt)
File "/usr/lib/python2.7/httplib.py", line 590, in _read_chunked
value.append(self._safe_read(chunk_left))
File "/usr/lib/python2.7/httplib.py", line 649, in _safe_read
raise IncompleteRead(''.join(s), amt)
IncompleteRead: IncompleteRead(16360 bytes read, 26 more expected)
I don't know why this happens only some times. can some one explain all the possible cases so that I can handle this.
I have read here https://stackoverflow.com/a/25214394/3981589 looping over it for n number of trails does that mean it might be problem with connectivity problem or some thing else.