Advertisement
Guest User

docker-schemathesis traceback

a guest
May 10th, 2021
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.31 KB | None | 0 0
  1. docker run --network="host" kiwicom/schemathesis:stable run http://localhost:5000/swagger.json --show-errors-tracebacks
  2. Failed to load schema from http://localhost:5000/swagger.json
  3. Error: Traceback (most recent call last):
  4. File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
  5. conn = connection.create_connection(
  6. File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 84, in create_connection
  7. raise err
  8. File "/usr/local/lib/python3.8/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.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
  16. httplib_response = self._make_request(
  17. File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 392, in _make_request
  18. conn.request(method, url, **httplib_request_kw)
  19. File "/usr/local/lib/python3.8/http/client.py", line 1255, in request
  20. self._send_request(method, url, body, headers, encode_chunked)
  21. File "/usr/local/lib/python3.8/http/client.py", line 1301, in _send_request
  22. self.endheaders(body, encode_chunked=encode_chunked)
  23. File "/usr/local/lib/python3.8/http/client.py", line 1250, in endheaders
  24. self._send_output(message_body, encode_chunked=encode_chunked)
  25. File "/usr/local/lib/python3.8/http/client.py", line 1010, in _send_output
  26. self.send(msg)
  27. File "/usr/local/lib/python3.8/http/client.py", line 950, in send
  28. self.connect()
  29. File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 187, in connect
  30. conn = self._new_conn()
  31. File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
  32. raise NewConnectionError(
  33. urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f0cb4467f10>: 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.8/site-packages/requests/adapters.py", line 439, in send
  39. resp = conn.urlopen(
  40. File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
  41. retries = retries.increment(
  42. File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
  43. raise MaxRetryError(_pool, url, error or ResponseError(cause))
  44. urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /swagger.json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0cb4467f10>: 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 "/usr/local/lib/python3.8/site-packages/schemathesis/runner/__init__.py", line 173, in execute_from_schema
  50. schema = load_schema(
  51. File "/usr/local/lib/python3.8/site-packages/schemathesis/runner/__init__.py", line 337, in load_schema
  52. return loader(
  53. File "/usr/local/lib/python3.8/site-packages/schemathesis/loaders.py", line 73, in from_uri
  54. response = requests.get(uri, **kwargs)
  55. File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 76, in get
  56. return request('get', url, params=params, **kwargs)
  57. File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 61, in request
  58. return session.request(method=method, url=url, **kwargs)
  59. File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
  60. resp = self.send(prep, **send_kwargs)
  61. File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
  62. r = adapter.send(request, **kwargs)
  63. File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 516, in send
  64. raise ConnectionError(e, request=request)
  65. requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /swagger.json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0cb4467f10>: Failed to establish a new connection: [Errno 111] Connection refused'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement