質問編集履歴
2
マークダウン間違えていたので修正しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
#入力
|
14
14
|
|
15
|
-
|
15
|
+
```homepage
|
16
16
|
|
17
17
|
import requests
|
18
18
|
|
@@ -30,13 +30,13 @@
|
|
30
30
|
|
31
31
|
print(status_code)
|
32
32
|
|
33
|
-
|
33
|
+
```
|
34
34
|
|
35
35
|
|
36
36
|
|
37
37
|
#出力(本名は〇に変えてます)
|
38
38
|
|
39
|
-
|
39
|
+
```error
|
40
40
|
|
41
41
|
During handling of the above exception, another exception occurred:
|
42
42
|
|
@@ -70,7 +70,7 @@
|
|
70
70
|
|
71
71
|
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /no_python.org.html (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x035986D0>: Failed to establish a new connection: [WinError 10061] 対象のコンピュ ーターによって拒否されたため、接続できませんでした。'))
|
72
72
|
|
73
|
-
|
73
|
+
```
|
74
74
|
|
75
75
|
|
76
76
|
|
1
エラーメッセージ全体をコピペしました
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,11 +34,41 @@
|
|
34
34
|
|
35
35
|
|
36
36
|
|
37
|
-
#出力(
|
37
|
+
#出力(本名は〇に変えてます)
|
38
38
|
|
39
39
|
'''
|
40
40
|
|
41
|
-
|
41
|
+
During handling of the above exception, another exception occurred:
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
Traceback (most recent call last):
|
46
|
+
|
47
|
+
File "homepage.py", line 6, in <module>
|
48
|
+
|
49
|
+
get_url_info = requests.get('http://localhost:8080/no_python.org.html')
|
50
|
+
|
51
|
+
File "C:\Users\〇\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\api.py", line 76, in get
|
52
|
+
|
53
|
+
return request('get', url, params=params, **kwargs)
|
54
|
+
|
55
|
+
File "C:\Users\〇\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\api.py", line 61, in request
|
56
|
+
|
57
|
+
return session.request(method=method, url=url, **kwargs)
|
58
|
+
|
59
|
+
File "C:\Users\〇\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\sessions.py", line 530, in request
|
60
|
+
|
61
|
+
resp = self.send(prep, **send_kwargs)
|
62
|
+
|
63
|
+
File "C:\Users\〇\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\sessions.py", line 643, in send
|
64
|
+
|
65
|
+
r = adapter.send(request, **kwargs)
|
66
|
+
|
67
|
+
File "C:\Users\〇\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\adapters.py", line 516, in send
|
68
|
+
|
69
|
+
raise ConnectionError(e, request=request)
|
70
|
+
|
71
|
+
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /no_python.org.html (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x035986D0>: Failed to establish a new connection: [WinError 10061] 対象のコンピュ ーターによって拒否されたため、接続できませんでした。'))
|
42
72
|
|
43
73
|
'''
|
44
74
|
|