Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- peter@peter-BHYVE2:~$ python3 import.py
- Traceback (most recent call last):
- File "/home/peter/.local/lib/python3.6/site-packages/urllib3/connection.py", l ine 141, in _new_conn
- (self.host, self.port), self.timeout, **extra_kw)
- File "/home/peter/.local/lib/python3.6/site-packages/urllib3/util/connection.p y", line 83, in create_connection
- raise err
- File "/home/peter/.local/lib/python3.6/site-packages/urllib3/util/connection.p y", line 73, in create_connection
- sock.connect(sa)
- TimeoutError: [Errno 110] Connection timed out
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/peter/.local/lib/python3.6/site-packages/urllib3/connectionpool.py ", line 601, in urlopen
- chunked=chunked)
- File "/home/peter/.local/lib/python3.6/site-packages/urllib3/connectionpool.py ", line 346, in _make_request
- self._validate_conn(conn)
- File "/home/peter/.local/lib/python3.6/site-packages/urllib3/connectionpool.py ", line 850, in _validate_conn
- conn.connect()
- File "/home/peter/.local/lib/python3.6/site-packages/urllib3/connection.py", l ine 284, in connect
- conn = self._new_conn()
- File "/home/peter/.local/lib/python3.6/site-packages/urllib3/connection.py", l ine 150, in _new_conn
- self, "Failed to establish a new connection: %s" % e)
- urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnecti on object at 0x7f35afca8358>: Failed to establish a new connection: [Errno 110] Connection timed out
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/peter/.local/lib/python3.6/site-packages/requests/adapters.py", li ne 440, in send
- timeout=timeout
- File "/home/peter/.local/lib/python3.6/site-packages/urllib3/connectionpool.py ", line 639, in urlopen
- _stacktrace=sys.exc_info()[2])
- File "/home/peter/.local/lib/python3.6/site-packages/urllib3/util/retry.py", l ine 388, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='wiki.[REDACTED].com ', port=443): Max retries exceeded with url: /api.php (Caused by NewConnectionEr ror('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f35afca8358>: Fail ed to establish a new connection: [Errno 110] Connection timed out',))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "import.py", line 2, in <module>
- print(requests.post('https://wiki.[REDACTED].com/api.php', 'action=query&me ta=siteinfo|userinfo&siprop=namespaces|namespacealiases|general&continue=&uiprop =blockinfo|hasmsg&maxlag=5&format=json').json())
- File "/home/peter/.local/lib/python3.6/site-packages/requests/api.py", line 11 2, in post
- return request('post', url, data=data, json=json, **kwargs)
- File "/home/peter/.local/lib/python3.6/site-packages/requests/api.py", line 58 , in request
- return session.request(method=method, url=url, **kwargs)
- File "/home/peter/.local/lib/python3.6/site-packages/requests/sessions.py", li ne 508, in request
- resp = self.send(prep, **send_kwargs)
- File "/home/peter/.local/lib/python3.6/site-packages/requests/sessions.py", li ne 618, in send
- r = adapter.send(request, **kwargs)
- File "/home/peter/.local/lib/python3.6/site-packages/requests/adapters.py", li ne 508, in send
- raise ConnectionError(e, request=request)
- requests.exceptions.ConnectionError: HTTPSConnectionPool(host='wiki.[REDACTED].com', port=443): Max retries exceeded with url: /api.php (Caused by NewConnectio nError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f35afca8358>: F ailed to establish a new connection: [Errno 110] Connection timed out',))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement