Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.68 KB | None | 0 0
  1. python recognize_realsense.py http://127.0.0.1:5000/api/v1/recognize mu4qxYSTLiQPP7pzQqKotnUMSfObTkrXEEBDd1Brd33IgLFMb2avd0iMKwz4sRLA
  2. DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1:5000
  3. Traceback (most recent call last):
  4. File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 157, in _new_conn
  5. (self._dns_host, self.port), self.timeout, **extra_kw
  6. File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection
  7. raise err
  8. File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, in create_connection
  9. sock.connect(sa)
  10. ConnectionRefusedError: [Errno 111] Connection refused
  11.  
  12. During handling of the above exception, another exception occurred:
  13.  
  14. Traceback (most recent call last):
  15. File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
  16. chunked=chunked,
  17. File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 387, in _make_request
  18. conn.request(method, url, **httplib_request_kw)
  19. File "/usr/local/lib/python3.7/http/client.py", line 1229, in request
  20. self._send_request(method, url, body, headers, encode_chunked)
  21. File "/usr/local/lib/python3.7/http/client.py", line 1275, in _send_request
  22. self.endheaders(body, encode_chunked=encode_chunked)
  23. File "/usr/local/lib/python3.7/http/client.py", line 1224, in endheaders
  24. self._send_output(message_body, encode_chunked=encode_chunked)
  25. File "/usr/local/lib/python3.7/http/client.py", line 1016, in _send_output
  26. self.send(msg)
  27. File "/usr/local/lib/python3.7/http/client.py", line 956, in send
  28. self.connect()
  29. File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 184, in connect
  30. conn = self._new_conn()
  31. File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 169, in _new_conn
  32. self, "Failed to establish a new connection: %s" % e
  33. urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f0518684438>: Failed to establish a new connection: [Errno 111] Connection refused
  34.  
  35. During handling of the above exception, another exception occurred:
  36.  
  37. Traceback (most recent call last):
  38. File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
  39. timeout=timeout
  40. File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen
  41. method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  42. File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 436, in increment
  43. raise MaxRetryError(_pool, url, error or ResponseError(cause))
  44. urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=5000): Max retries exceeded with url: /api/v1/recognize (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0518684438>: Failed to establish a new connection: [Errno 111] Connection refused'))
  45.  
  46. During handling of the above exception, another exception occurred:
  47.  
  48. Traceback (most recent call last):
  49. File "recognize_realsense.py", line 129, in <module>
  50. recognize()
  51. File "/usr/local/lib/python3.7/site-packages/click/core.py", line 764, in __call__
  52. return self.main(*args, **kwargs)
  53. File "/usr/local/lib/python3.7/site-packages/click/core.py", line 717, in main
  54. rv = self.invoke(ctx)
  55. File "/usr/local/lib/python3.7/site-packages/click/core.py", line 956, in invoke
  56. return ctx.invoke(self.callback, **ctx.params)
  57. File "/usr/local/lib/python3.7/site-packages/click/core.py", line 555, in invoke
  58. return callback(*args, **kwargs)
  59. File "recognize_realsense.py", line 111, in recognize
  60. response = requests.post(url, json=request_data, headers=headers)
  61. File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 116, in post
  62. return request('post', url, data=data, json=json, **kwargs)
  63. File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request
  64. return session.request(method=method, url=url, **kwargs)
  65. File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
  66. resp = self.send(prep, **send_kwargs)
  67. File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
  68. r = adapter.send(request, **kwargs)
  69. File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
  70. raise ConnectionError(e, request=request)
  71. requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=5000): Max retries exceeded with url: /api/v1/recognize (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0518684438>: Failed to establish a new connection: [Errno 111] Connection refused'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement