在下载文件的过程中遇到异常
异常信息:
requests.exceptions.ChunkedEncodingError: (“Connection broken: InvalidChunkLength(got length b’', 0 bytes read)”, InvalidChunkLength(got length b’', 0 bytes read))

将源码中相应抛异常的部分注释掉

requests.exceptions.ChunkedEncodingError: (‘Connection broken: IncompleteRead(0 bytes read)’, Incomp
在尝试下载文件时遇到了requests库抛出的ChunkedEncodingError异常,具体表现为Connectionbroken:InvalidChunkLength,意味着在处理分块编码时遇到了无效的长度。为了解决这个问题,用户注释掉了引发异常的代码段,但这样可能只是掩盖了问题,而不是根本解决。

被折叠的 条评论
为什么被折叠?



