Closed patrekurs19 closed 2 years ago
Þetta lítur út eins og duplicate af #40
Líklegast ertu með harðkóðað value fyrir hostnafn í ingress.template.yaml
fyrir connect4-server kóðann. Hitt issueið fer ágætlega yfir vandamálið sem þú ert líklegast að díla við
Yess thanks that fixed it!!
I'm not sure why its failing, might be because I haven't done the logic yet. But if it's not because of that, any help would be greatly appreciated.
This came after I pushed to circleci: `#!/bin/bash -eo pipefail pytest $PROJECT_DIRECTORY/src/tests/acceptance
============================= test session starts ============================== platform linux -- Python 3.8.15, pytest-7.2.0, pluggy-1.0.0 rootdir: /home/circleci/project/src/connect4-server, configfile: pytest.ini plugins: cov-4.0.0 collected 1 item
src/connect4-server/src/tests/acceptance/test_status.py F [100%]
=================================== FAILURES =================================== _ test_status __
self = <urllib3.connectionpool.HTTPSConnectionPool object at 0x7ff4b5cc5a90> method = 'GET', url = '//status', body = None headers = {'User-Agent': 'python-requests/2.28.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '/', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=None, read=None, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None response_kw = {'decode_content': False, 'preload_content': False} parsed_url = Url(scheme=None, auth=None, host='status', port=None, path=None, query=None, fragment=None) destination_scheme = None, conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False
../.pyenv/versions/3.8.15/lib/python3.8/site-packages/urllib3/connectionpool.py:703:
self = <urllib3.connectionpool.HTTPSConnectionPool object at 0x7ff4b5cc5a90> conn = <urllib3.connection.HTTPSConnection object at 0x7ff4b5cc5f40> method = 'GET', url = '//status' timeout = Timeout(connect=None, read=None, total=None), chunked = False httplib_request_kw = {'body': None, 'headers': {'User-Agent': 'python-requests/2.28.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '/', 'Connection': 'keep-alive'}} timeout_obj = Timeout(connect=None, read=None, total=None)
../.pyenv/versions/3.8.15/lib/python3.8/site-packages/urllib3/connectionpool.py:386:
self = <urllib3.connectionpool.HTTPSConnectionPool object at 0x7ff4b5cc5a90> conn = <urllib3.connection.HTTPSConnection object at 0x7ff4b5cc5f40>
../.pyenv/versions/3.8.15/lib/python3.8/site-packages/urllib3/connectionpool.py:1042:
self = <urllib3.connection.HTTPSConnection object at 0x7ff4b5cc5f40>
../.pyenv/versions/3.8.15/lib/python3.8/site-packages/urllib3/connection.py:414:
sock = <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6> keyfile = None, certfile = None, cert_reqs = None ca_certs = '/home/circleci/.pyenv/versions/3.8.15/lib/python3.8/site-packages/certifi/cacert.pem' server_hostname = 'connect4-server.acceptance.onyx.hgopteam.com' ssl_version = None, ciphers = None ssl_context = <ssl.SSLContext object at 0x7ff4b5caa9c0>, ca_cert_dir = None key_password = None, ca_cert_data = None, tls_in_tls = False
../.pyenv/versions/3.8.15/lib/python3.8/site-packages/urllib3/util/ssl_.py:449:
sock = <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6> ssl_context = <ssl.SSLContext object at 0x7ff4b5caa9c0>, tls_in_tls = False server_hostname = 'connect4-server.acceptance.onyx.hgopteam.com'
../.pyenv/versions/3.8.15/lib/python3.8/site-packages/urllib3/util/ssl_.py:493:
self = <ssl.SSLContext object at 0x7ff4b5caa9c0> sock = <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6> server_side = False, do_handshake_on_connect = True, suppress_ragged_eofs = True server_hostname = 'connect4-server.acceptance.onyx.hgopteam.com', session = None
../.pyenv/versions/3.8.15/lib/python3.8/ssl.py:500:
cls = <class 'ssl.SSLSocket'> sock = <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6> server_side = False, do_handshake_on_connect = True, suppress_ragged_eofs = True server_hostname = 'connect4-server.acceptance.onyx.hgopteam.com' context = <ssl.SSLContext object at 0x7ff4b5caa9c0>, session = None
../.pyenv/versions/3.8.15/lib/python3.8/ssl.py:1040:
self = <ssl.SSLSocket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6> block = False
../.pyenv/versions/3.8.15/lib/python3.8/ssl.py:1309: SSLCertVerificationError
During handling of the above exception, another exception occurred:
self = <requests.adapters.HTTPAdapter object at 0x7ff4b4bad3a0> request = <PreparedRequest [GET]>, stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None proxies = OrderedDict([('no', '127.0.0.1,localhost,circleci-internal-outer-build-agent')])
../.pyenv/versions/3.8.15/lib/python3.8/site-packages/requests/adapters.py:489:
self = <urllib3.connectionpool.HTTPSConnectionPool object at 0x7ff4b5cc5a90> method = 'GET', url = '//status', body = None headers = {'User-Agent': 'python-requests/2.28.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '/', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=None, read=None, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None response_kw = {'decode_content': False, 'preload_content': False} parsed_url = Url(scheme=None, auth=None, host='status', port=None, path=None, query=None, fragment=None) destination_scheme = None, conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False
../.pyenv/versions/3.8.15/lib/python3.8/site-packages/urllib3/connectionpool.py:787:
self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '//status', response = None error = SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1131)')) _pool = <urllib3.connectionpool.HTTPSConnectionPool object at 0x7ff4b5cc5a90> _stacktrace = <traceback object at 0x7ff4b5c7a600>
../.pyenv/versions/3.8.15/lib/python3.8/site-packages/urllib3/util/retry.py:592: MaxRetryError
During handling of the above exception, another exception occurred:
src/connect4-server/src/tests/acceptance/test_status.py:6:
../.pyenv/versions/3.8.15/lib/python3.8/site-packages/requests/api.py:73: in get return request("get", url, params=params, kwargs) ../.pyenv/versions/3.8.15/lib/python3.8/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, kwargs) ../.pyenv/versions/3.8.15/lib/python3.8/site-packages/requests/sessions.py:587: in request resp = self.send(prep, send_kwargs) ../.pyenv/versions/3.8.15/lib/python3.8/site-packages/requests/sessions.py:701: in send r = adapter.send(request, kwargs)
self = <requests.adapters.HTTPAdapter object at 0x7ff4b4bad3a0> request = <PreparedRequest [GET]>, stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None proxies = OrderedDict([('no', '127.0.0.1,localhost,circleci-internal-outer-build-agent')])
../.pyenv/versions/3.8.15/lib/python3.8/site-packages/requests/adapters.py:563: SSLError =========================== short test summary info ============================ FAILED src/connect4-server/src/tests/acceptance/test_status.py::test_status - requests.exceptions.SSLError: HTTPSConnectionPool(host='connect4-server.acceptance.onyx.hgopteam.com', port=443): Max retries exceeded with url: //status (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1131)'))) ============================== 1 failed in 0.58s ===============================
Exited with code exit status 1
CircleCI received exit code 1`