Advertisement
Guest User

Untitled

a guest
Oct 13th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. >>> requests.get('http://localhost:123')
  2. Traceback (most recent call last):
  3. File "<stdin>", line 1, in <module>
  4. File "/usr/lib/python2.7/site-packages/requests/api.py", line 71, in get
  5. return request('get', url, params=params, **kwargs)
  6. File "/usr/lib/python2.7/site-packages/requests/api.py", line 57, in request
  7. return session.request(method=method, url=url, **kwargs)
  8. File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
  9. resp = self.send(prep, **send_kwargs)
  10. File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 585, in send
  11. r = adapter.send(request, **kwargs)
  12. File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 467, in send
  13. raise ConnectionError(e, request=request)
  14. requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=123): Max retries exceeded with url: / (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f08810d8110>: Failed to establish a new connection: [Errno 111] Connection refused',))
  15. >>> requests.get('http://192.168.201.4:123')
  16. Traceback (most recent call last):
  17. File "<stdin>", line 1, in <module>
  18. File "/usr/lib/python2.7/site-packages/requests/api.py", line 71, in get
  19. return request('get', url, params=params, **kwargs)
  20. File "/usr/lib/python2.7/site-packages/requests/api.py", line 57, in request
  21. return session.request(method=method, url=url, **kwargs)
  22. File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
  23. resp = self.send(prep, **send_kwargs)
  24. File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 585, in send
  25. r = adapter.send(request, **kwargs)
  26. File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 467, in send
  27. raise ConnectionError(e, request=request)
  28. requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.201.4', port=123): Max retries exceeded with url: / (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f08810d8910>: Failed to establish a new connection: [Errno 113] No route to host',))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement