質問編集履歴
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,96 +16,96 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
+
|
20
|
+
|
21
|
+
```
|
22
|
+
|
23
|
+
raceback (most recent call last):
|
24
|
+
|
25
|
+
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/urllib3/response.py", line 401, in _decode
|
26
|
+
|
27
|
+
data = self._decoder.decompress(data)
|
28
|
+
|
29
|
+
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/urllib3/response.py", line 88, in decompress
|
30
|
+
|
31
|
+
ret += self._obj.decompress(data)
|
32
|
+
|
33
|
+
zlib.error: Error -3 while decompressing data: incorrect data check
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
During handling of the above exception, another exception occurred:
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
Traceback (most recent call last):
|
42
|
+
|
43
|
+
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/requests/models.py", line 753, in generate
|
44
|
+
|
45
|
+
for chunk in self.raw.stream(chunk_size, decode_content=True):
|
46
|
+
|
47
|
+
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/urllib3/response.py", line 572, in stream
|
48
|
+
|
49
|
+
for line in self.read_chunked(amt, decode_content=decode_content):
|
50
|
+
|
51
|
+
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/urllib3/response.py", line 768, in read_chunked
|
52
|
+
|
53
|
+
decoded = self._decode(
|
54
|
+
|
55
|
+
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/urllib3/response.py", line 404, in _decode
|
56
|
+
|
57
|
+
raise DecodeError(
|
58
|
+
|
59
|
+
urllib3.exceptions.DecodeError: ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect data check'))
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
During handling of the above exception, another exception occurred:
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
Traceback (most recent call last):
|
68
|
+
|
69
|
+
File "/Users/test_user/copy_test.py", line 21, in <module>
|
70
|
+
|
71
|
+
response = requests.get(url)
|
72
|
+
|
73
|
+
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/requests/api.py", line 76, in get
|
74
|
+
|
75
|
+
return request('get', url, params=params, **kwargs)
|
76
|
+
|
77
|
+
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/requests/api.py", line 61, in request
|
78
|
+
|
79
|
+
return session.request(method=method, url=url, **kwargs)
|
80
|
+
|
81
|
+
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
|
82
|
+
|
83
|
+
resp = self.send(prep, **send_kwargs)
|
84
|
+
|
85
|
+
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/requests/sessions.py", line 697, in send
|
86
|
+
|
87
|
+
r.content
|
88
|
+
|
89
|
+
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/requests/models.py", line 831, in content
|
90
|
+
|
91
|
+
self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''
|
92
|
+
|
93
|
+
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/requests/models.py", line 758, in generate
|
94
|
+
|
95
|
+
raise ContentDecodingError(e)
|
96
|
+
|
97
|
+
requests.exceptions.ContentDecodingError: ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect data check'))
|
98
|
+
|
99
|
+
```
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
### 該当のソースコード
|
104
|
+
|
19
105
|
具体的なサイトURLや秘密鍵などは伏せ字にしています。
|
20
106
|
|
21
107
|
|
22
108
|
|
23
|
-
```
|
24
|
-
|
25
|
-
raceback (most recent call last):
|
26
|
-
|
27
|
-
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/urllib3/response.py", line 401, in _decode
|
28
|
-
|
29
|
-
data = self._decoder.decompress(data)
|
30
|
-
|
31
|
-
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/urllib3/response.py", line 88, in decompress
|
32
|
-
|
33
|
-
ret += self._obj.decompress(data)
|
34
|
-
|
35
|
-
zlib.error: Error -3 while decompressing data: incorrect data check
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
During handling of the above exception, another exception occurred:
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
Traceback (most recent call last):
|
44
|
-
|
45
|
-
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/requests/models.py", line 753, in generate
|
46
|
-
|
47
|
-
for chunk in self.raw.stream(chunk_size, decode_content=True):
|
48
|
-
|
49
|
-
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/urllib3/response.py", line 572, in stream
|
50
|
-
|
51
|
-
for line in self.read_chunked(amt, decode_content=decode_content):
|
52
|
-
|
53
|
-
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/urllib3/response.py", line 768, in read_chunked
|
54
|
-
|
55
|
-
decoded = self._decode(
|
56
|
-
|
57
|
-
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/urllib3/response.py", line 404, in _decode
|
58
|
-
|
59
|
-
raise DecodeError(
|
60
|
-
|
61
|
-
urllib3.exceptions.DecodeError: ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect data check'))
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
During handling of the above exception, another exception occurred:
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
Traceback (most recent call last):
|
70
|
-
|
71
|
-
File "/Users/test_user/copy_test.py", line 21, in <module>
|
72
|
-
|
73
|
-
response = requests.get(url)
|
74
|
-
|
75
|
-
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/requests/api.py", line 76, in get
|
76
|
-
|
77
|
-
return request('get', url, params=params, **kwargs)
|
78
|
-
|
79
|
-
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/requests/api.py", line 61, in request
|
80
|
-
|
81
|
-
return session.request(method=method, url=url, **kwargs)
|
82
|
-
|
83
|
-
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
|
84
|
-
|
85
|
-
resp = self.send(prep, **send_kwargs)
|
86
|
-
|
87
|
-
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/requests/sessions.py", line 697, in send
|
88
|
-
|
89
|
-
r.content
|
90
|
-
|
91
|
-
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/requests/models.py", line 831, in content
|
92
|
-
|
93
|
-
self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''
|
94
|
-
|
95
|
-
File "/Users/test_user/.pyenv/versions/3.9.4/lib/python3.9/site-packages/requests/models.py", line 758, in generate
|
96
|
-
|
97
|
-
raise ContentDecodingError(e)
|
98
|
-
|
99
|
-
requests.exceptions.ContentDecodingError: ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect data check'))
|
100
|
-
|
101
|
-
```
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
### 該当のソースコード
|
106
|
-
|
107
|
-
|
108
|
-
|
109
109
|
```ここに言語名を入力
|
110
110
|
|
111
111
|
import requests
|