Advertisement
Guest User

Untitled

a guest
Jun 11th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 7.54 KB | None | 0 0
  1. peter@peter-BHYVE2:~$ python3 import.py
  2. Traceback (most recent call last):
  3.   File "/home/peter/.local/lib/python3.6/site-packages/urllib3/connection.py", l                                                                                                                                                             ine 141, in _new_conn
  4.     (self.host, self.port), self.timeout, **extra_kw)
  5.   File "/home/peter/.local/lib/python3.6/site-packages/urllib3/util/connection.p                                                                                                                                                             y", line 83, in create_connection
  6.     raise err
  7.   File "/home/peter/.local/lib/python3.6/site-packages/urllib3/util/connection.p                                                                                                                                                             y", line 73, in create_connection
  8.     sock.connect(sa)
  9. TimeoutError: [Errno 110] Connection timed out
  10.  
  11. During handling of the above exception, another exception occurred:
  12.  
  13. Traceback (most recent call last):
  14.   File "/home/peter/.local/lib/python3.6/site-packages/urllib3/connectionpool.py                                                                                                                                                             ", line 601, in urlopen
  15.     chunked=chunked)
  16.   File "/home/peter/.local/lib/python3.6/site-packages/urllib3/connectionpool.py                                                                                                                                                             ", line 346, in _make_request
  17.     self._validate_conn(conn)
  18.   File "/home/peter/.local/lib/python3.6/site-packages/urllib3/connectionpool.py                                                                                                                                                             ", line 850, in _validate_conn
  19.     conn.connect()
  20.   File "/home/peter/.local/lib/python3.6/site-packages/urllib3/connection.py", l                                                                                                                                                             ine 284, in connect
  21.     conn = self._new_conn()
  22.   File "/home/peter/.local/lib/python3.6/site-packages/urllib3/connection.py", l                                                                                                                                                             ine 150, in _new_conn
  23.     self, "Failed to establish a new connection: %s" % e)
  24. urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnecti                                                                                                                                                             on object at 0x7f35afca8358>: Failed to establish a new connection: [Errno 110]                                                                                                                                                              Connection timed out
  25.  
  26. During handling of the above exception, another exception occurred:
  27.  
  28. Traceback (most recent call last):
  29.   File "/home/peter/.local/lib/python3.6/site-packages/requests/adapters.py", li                                                                                                                                                             ne 440, in send
  30.     timeout=timeout
  31.   File "/home/peter/.local/lib/python3.6/site-packages/urllib3/connectionpool.py                                                                                                                                                             ", line 639, in urlopen
  32.     _stacktrace=sys.exc_info()[2])
  33.   File "/home/peter/.local/lib/python3.6/site-packages/urllib3/util/retry.py", l                                                                                                                                                             ine 388, in increment
  34.     raise MaxRetryError(_pool, url, error or ResponseError(cause))
  35. 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',))
  36.  
  37. During handling of the above exception, another exception occurred:
  38.  
  39. Traceback (most recent call last):
  40.   File "import.py", line 2, in <module>
  41.     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())
  42.   File "/home/peter/.local/lib/python3.6/site-packages/requests/api.py", line 11                                                                                                                                                             2, in post
  43.     return request('post', url, data=data, json=json, **kwargs)
  44.   File "/home/peter/.local/lib/python3.6/site-packages/requests/api.py", line 58                                                                                                                                                             , in request
  45.     return session.request(method=method, url=url, **kwargs)
  46.   File "/home/peter/.local/lib/python3.6/site-packages/requests/sessions.py", li                                                                                                                                                             ne 508, in request
  47.     resp = self.send(prep, **send_kwargs)
  48.   File "/home/peter/.local/lib/python3.6/site-packages/requests/sessions.py", li                                                                                                                                                             ne 618, in send
  49.     r = adapter.send(request, **kwargs)
  50.   File "/home/peter/.local/lib/python3.6/site-packages/requests/adapters.py", li                                                                                                                                                             ne 508, in send
  51.     raise ConnectionError(e, request=request)
  52. 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