Occasional failure in HTTP bytes
@martindurant đang làm issue này rồi.
Từ ngày 6/8/2019.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
When running CI in this project I sometimes run across the following error:
~/miniconda/envs/test/lib/python3.7/site-packages/dask/bag/core.py in reify()
1603 def reify(seq):
1604 if isinstance(seq, Iterator):
-> 1605 seq = list(seq)
1606 if seq and isinstance(seq[0], Iterator):
1607 seq = list(map(list, seq))
~/miniconda/envs/test/lib/python3.7/site-packages/dask/bag/core.py in map_chunk()
1769 yield f(**k)
1770 else:
-> 1771 for a in zip(*args):
1772 yield f(*a)
1773
~/miniconda/envs/test/lib/python3.7/site-packages/dask/bag/text.py in file_to_blocks()
103 def file_to_blocks(lazy_file):
104 with lazy_file as f:
--> 105 for line in f:
106 yield line
107
~/miniconda/envs/test/lib/python3.7/site-packages/dask/bytes/http.py in read()
247 # EOF (python files don't error, just return no data)
248 return b''
--> 249 self. _fetch(self.loc, end)
250 data = self.cache[self.loc - self.start:end - self.start]
251 self.loc = end
~/miniconda/envs/test/lib/python3.7/site-packages/dask/bytes/http.py in _fetch()
258 self.start = start
259 self.end = end + self.blocksize
--> 260 self.cache = self._fetch_range(start, self.end)
261 elif start < self.start:
262 if self.end - end > self.blocksize:
~/miniconda/envs/test/lib/python3.7/site-packages/dask/bytes/http.py in _fetch_range()
320 if cl <= end - start:
321 # data size OK
--> 322 return r.content
323 else:
324 raise ValueError('Got more bytes (%i) than requested (%i)' % (
~/miniconda/envs/test/lib/python3.7/site-packages/requests/models.py in content()
826 self._content = None
827 else:
--> 828 self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''
829
830 self._content_consumed = True
~/miniconda/envs/test/lib/python3.7/site-packages/requests/models.py in generate()
751 yield chunk
752 except ProtocolError as e:
--> 753 raise ChunkedEncodingError(e)
754 except DecodeError as e:
755 raise ContentDecodingError(e)
ChunkedEncodingError: ('Connection broken: OSError("(104, \'ECONNRESET\')")', OSError("(104, 'ECONNRESET')"))
ChunkedEncodingError: ('Connection broken: OSError("(104, \'ECONNRESET\')")', OSError("(104, 'ECONNRESET')"))
You can ignore this error by setting the following in conf.py:
nbsphinx_allow_errors = True
Notebook error:
CellExecutionError in applications/json-data-on-the-web.ipynb:
------------------
df.spec.value_counts().nlargest(20).to_frame().compute()
------------------
@martindurant , this seems to be in your general domain. Do you have any suggestions on what might be happening here?
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 387
- Fork
- 225
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của dask/dask-examples
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
dask/dask-examples#247 · 2 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
dask/dask-examples#234 · 1 bình luận ·
-
CI failing on mainĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
dask/dask-examples#246 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 38/100
dask/dask-examples#236 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 48/100
dask/dask-examples#235 · 1 bình luận ·