Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- python recognize_realsense.py http://127.0.0.1:5000/api/v1/recognize mu4qxYSTLiQPP7pzQqKotnUMSfObTkrXEEBDd1Brd33IgLFMb2avd0iMKwz4sRLA
- DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1:5000
- Traceback (most recent call last):
- File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 157, in _new_conn
- (self._dns_host, self.port), self.timeout, **extra_kw
- File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection
- raise err
- File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, in create_connection
- sock.connect(sa)
- ConnectionRefusedError: [Errno 111] Connection refused
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
- chunked=chunked,
- File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 387, in _make_request
- conn.request(method, url, **httplib_request_kw)
- File "/usr/local/lib/python3.7/http/client.py", line 1229, in request
- self._send_request(method, url, body, headers, encode_chunked)
- File "/usr/local/lib/python3.7/http/client.py", line 1275, in _send_request
- self.endheaders(body, encode_chunked=encode_chunked)
- File "/usr/local/lib/python3.7/http/client.py", line 1224, in endheaders
- self._send_output(message_body, encode_chunked=encode_chunked)
- File "/usr/local/lib/python3.7/http/client.py", line 1016, in _send_output
- self.send(msg)
- File "/usr/local/lib/python3.7/http/client.py", line 956, in send
- self.connect()
- File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 184, in connect
- conn = self._new_conn()
- File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 169, in _new_conn
- self, "Failed to establish a new connection: %s" % e
- urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f0518684438>: Failed to establish a new connection: [Errno 111] Connection refused
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
- timeout=timeout
- File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen
- method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
- File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 436, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- 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'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "recognize_realsense.py", line 129, in <module>
- recognize()
- File "/usr/local/lib/python3.7/site-packages/click/core.py", line 764, in __call__
- return self.main(*args, **kwargs)
- File "/usr/local/lib/python3.7/site-packages/click/core.py", line 717, in main
- rv = self.invoke(ctx)
- File "/usr/local/lib/python3.7/site-packages/click/core.py", line 956, in invoke
- return ctx.invoke(self.callback, **ctx.params)
- File "/usr/local/lib/python3.7/site-packages/click/core.py", line 555, in invoke
- return callback(*args, **kwargs)
- File "recognize_realsense.py", line 111, in recognize
- response = requests.post(url, json=request_data, headers=headers)
- File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 116, in post
- return request('post', url, data=data, json=json, **kwargs)
- File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request
- return session.request(method=method, url=url, **kwargs)
- File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
- resp = self.send(prep, **send_kwargs)
- File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
- r = adapter.send(request, **kwargs)
- File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
- raise ConnectionError(e, request=request)
- 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