質問編集履歴
2
マークダウン間違えていたので修正しました。
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Atom
|
|
6
6
|
|
|
7
7
|
#入力
|
|
8
|
-
|
|
8
|
+
```homepage
|
|
9
9
|
import requests
|
|
10
10
|
|
|
11
11
|
get_url_info = requests.get('https://www.python.org')
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
get_url_info = requests.get('http://localhost:8080/no_python.org.html')
|
|
15
15
|
status_code = get_url_info.status_code
|
|
16
16
|
print(status_code)
|
|
17
|
-
|
|
17
|
+
```
|
|
18
18
|
|
|
19
19
|
#出力(本名は〇に変えてます)
|
|
20
|
-
|
|
20
|
+
```error
|
|
21
21
|
During handling of the above exception, another exception occurred:
|
|
22
22
|
|
|
23
23
|
Traceback (most recent call last):
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
File "C:\Users\〇\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\adapters.py", line 516, in send
|
|
35
35
|
raise ConnectionError(e, request=request)
|
|
36
36
|
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] 対象のコンピュ ーターによって拒否されたため、接続できませんでした。'))
|
|
37
|
-
|
|
37
|
+
```
|
|
38
38
|
|
|
39
39
|
このコンピュータによる拒否というのはどうすれば解決できるのか教えて頂きたいです。
|
1
エラーメッセージ全体をコピペしました
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -16,9 +16,24 @@
|
|
|
16
16
|
print(status_code)
|
|
17
17
|
'''
|
|
18
18
|
|
|
19
|
-
#出力(
|
|
19
|
+
#出力(本名は〇に変えてます)
|
|
20
20
|
'''
|
|
21
|
-
|
|
21
|
+
During handling of the above exception, another exception occurred:
|
|
22
|
+
|
|
23
|
+
Traceback (most recent call last):
|
|
24
|
+
File "homepage.py", line 6, in <module>
|
|
25
|
+
get_url_info = requests.get('http://localhost:8080/no_python.org.html')
|
|
26
|
+
File "C:\Users\〇\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\api.py", line 76, in get
|
|
27
|
+
return request('get', url, params=params, **kwargs)
|
|
28
|
+
File "C:\Users\〇\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\api.py", line 61, in request
|
|
29
|
+
return session.request(method=method, url=url, **kwargs)
|
|
30
|
+
File "C:\Users\〇\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\sessions.py", line 530, in request
|
|
31
|
+
resp = self.send(prep, **send_kwargs)
|
|
32
|
+
File "C:\Users\〇\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\sessions.py", line 643, in send
|
|
33
|
+
r = adapter.send(request, **kwargs)
|
|
34
|
+
File "C:\Users\〇\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\adapters.py", line 516, in send
|
|
35
|
+
raise ConnectionError(e, request=request)
|
|
36
|
+
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] 対象のコンピュ ーターによって拒否されたため、接続できませんでした。'))
|
|
22
37
|
'''
|
|
23
38
|
|
|
24
39
|
このコンピュータによる拒否というのはどうすれば解決できるのか教えて頂きたいです。
|