Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ ✨ Upgrade acapy 1.0.0 #990

Merged
merged 70 commits into from
Aug 21, 2024

:bug: adjust look_back duration correctly by setting max value

c90355c
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

⬆️ ✨ Upgrade acapy 1.0.0 #990

:bug: adjust look_back duration correctly by setting max value
c90355c
Select commit
Loading
Failed to load commit list.
GitHub Actions / JUnit Test Report failed Aug 20, 2024 in 0s

1078 tests run, 980 passed, 4 skipped, 94 failed.

Annotations

Check failure on line 90 in app/tests/e2e/test_connections.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_connections.test_accept_invitation[clean-clean]

httpx.ConnectError: All connection attempts failed
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

bob_member_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7fe83fd0b290>
alice_member_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7fe83fd082f0>

    @pytest.mark.anyio
    async def test_accept_invitation(
        bob_member_client: RichAsyncClient,
        alice_member_client: RichAsyncClient,
    ):
        alias = "test_alias"
        invitation_response = await bob_member_client.post(f"{BASE_PATH}/create-invitation")
        invitation = invitation_response.json()
    
        accept_invite_json = AcceptInvitation(
            alias=alias,
            invitation=invitation["invitation"],
        ).model_dump()
    
        accept_response = await alice_member_client.post(
            f"{BASE_PATH}/accept-invitation",
            json=accept_invite_json,
        )
        connection_record = accept_response.json()
    
        assert_that(connection_record).contains(
            "connection_id", "state", "created_at", "updated_at", "invitation_key"
        )
        assert_that(connection_record).has_state("request-sent")
        assert_that(connection_record["alias"]).is_equal_to(alias)
    
>       assert await check_webhook_state(
            client=alice_member_client,
            topic="connections",
            state="completed",
            filter_map={
                "connection_id": connection_record["connection_id"],
            },
        )

app/tests/e2e/test_connections.py:90: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 1 in app/tests/e2e/verifier/test_verifier.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_verifier.test_accept_proof_request_verifier_has_issuer_role[clean-clean-clean-clean-clean-trust_registry-v1]

failed on setup with "httpx.ConnectError: All connection attempts failed"
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio', args = ()
kwargs = {'alice_member_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e99b8500>, 'alice_tenant': Crea...0T14:12:36.392817Z', updated_at='2024-08-20T14:12:36.484424Z', image_url=None, group_id='IssuerAndVerifierGroup'), ...}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fe0e95eab40>

    def wrapper(*args, anyio_backend, **kwargs):  # type: ignore[no-untyped-def]
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(func):
                yield from runner.run_asyncgen_fixture(func, kwargs)
            else:
>               yield runner.run_fixture(func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1987: in run_fixture
    retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1957: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1932: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_connections.py:123: in meld_co_and_alice_connection
    acme_alice_connect = await connect_using_trust_registry_invite(
app/tests/util/connections.py:206: in connect_using_trust_registry_invite
    payload = await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 1 in app/tests/e2e/verifier/test_verifier.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_verifier.test_accept_proof_request_verifier_has_issuer_role[clean-clean-clean-clean-clean-trust_registry-v2]

failed on setup with "httpx.ConnectError: All connection attempts failed"
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio', args = ()
kwargs = {'alice_member_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e95942f0>, 'alice_tenant': Crea...0T14:12:36.392817Z', updated_at='2024-08-20T14:12:36.484424Z', image_url=None, group_id='IssuerAndVerifierGroup'), ...}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fe0e95eab40>

    def wrapper(*args, anyio_backend, **kwargs):  # type: ignore[no-untyped-def]
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(func):
                yield from runner.run_asyncgen_fixture(func, kwargs)
            else:
>               yield runner.run_fixture(func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1987: in run_fixture
    retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1957: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1932: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_connections.py:123: in meld_co_and_alice_connection
    acme_alice_connect = await connect_using_trust_registry_invite(
app/tests/util/connections.py:206: in connect_using_trust_registry_invite
    payload = await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 1 in app/tests/e2e/verifier/test_verifier.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_verifier.test_accept_proof_request_verifier_has_issuer_role[clean-clean-clean-clean-clean-default-v1]

failed on setup with "httpx.ConnectError: All connection attempts failed"
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio', args = ()
kwargs = {'alice_member_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0ed1d0110>, 'alice_tenant': Crea...0T14:12:36.392817Z', updated_at='2024-08-20T14:12:36.484424Z', image_url=None, group_id='IssuerAndVerifierGroup'), ...}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fe0e95eab40>

    def wrapper(*args, anyio_backend, **kwargs):  # type: ignore[no-untyped-def]
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(func):
                yield from runner.run_asyncgen_fixture(func, kwargs)
            else:
>               yield runner.run_fixture(func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1987: in run_fixture
    retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1957: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1932: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_connections.py:149: in meld_co_and_alice_connection
    bob_alice_connection = await create_connection_by_test_mode(
app/tests/util/connections.py:169: in create_connection_by_test_mode
    return await create_bob_alice_connection(
app/tests/util/connections.py:90: in create_bob_alice_connection
    await assert_both_connections_ready(
app/tests/util/connections.py:53: in assert_both_connections_ready
    await assert_both_webhooks_received(
app/tests/util/webhooks.py:132: in assert_both_webhooks_received
    results = await asyncio.gather(
app/tests/util/webhooks.py:128: in check_webhook
    return await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 1 in app/tests/e2e/verifier/test_verifier.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_verifier.test_accept_proof_request_verifier_has_issuer_role[clean-clean-clean-clean-clean-default-v2]

failed on setup with "httpx.ConnectError: All connection attempts failed"
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio', args = ()
kwargs = {'alice_member_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e8d13e90>, 'alice_tenant': Crea...0T14:12:36.392817Z', updated_at='2024-08-20T14:12:36.484424Z', image_url=None, group_id='IssuerAndVerifierGroup'), ...}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fe0e95eab40>

    def wrapper(*args, anyio_backend, **kwargs):  # type: ignore[no-untyped-def]
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(func):
                yield from runner.run_asyncgen_fixture(func, kwargs)
            else:
>               yield runner.run_fixture(func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1987: in run_fixture
    retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1957: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1932: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_connections.py:149: in meld_co_and_alice_connection
    bob_alice_connection = await create_connection_by_test_mode(
app/tests/util/connections.py:169: in create_connection_by_test_mode
    return await create_bob_alice_connection(
app/tests/util/connections.py:90: in create_bob_alice_connection
    await assert_both_connections_ready(
app/tests/util/connections.py:53: in assert_both_connections_ready
    await assert_both_webhooks_received(
app/tests/util/webhooks.py:132: in assert_both_webhooks_received
    results = await asyncio.gather(
app/tests/util/webhooks.py:128: in check_webhook
    return await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 73 in app/tests/e2e/issuer/test_indy_credentials.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_indy_credentials.test_send_credential_oob[clean-clean-clean-clean-v1]

httpx.ConnectError: All connection attempts failed
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

faber_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7fced230d970>
schema_definition = CredentialSchema(id='Bo9W24g9VmLCnWopu5LJJm:2:test_schema:28.78.5', name='test_schema', version='28.78.5', attribute_names=['name', 'speed', 'age'])
credential_definition_id = 'R5xD9XxcVJHcgQ7bcAe79T:3:CL:16904:tag'
alice_member_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7fced230d580>
protocol_version = 'v1'

    @pytest.mark.anyio
    @pytest.mark.parametrize("protocol_version", ["v1", "v2"])
    async def test_send_credential_oob(
        faber_client: RichAsyncClient,
        schema_definition: CredentialSchema,
        credential_definition_id: str,
        alice_member_client: RichAsyncClient,
        protocol_version: str,
    ):
        credential = {
            "protocol_version": protocol_version,
            "indy_credential_detail": {
                "credential_definition_id": credential_definition_id,
                "attributes": sample_credential_attributes,
            },
        }
    
        response = await faber_client.post(
            CREDENTIALS_BASE_PATH + "/create-offer",
            json=credential,
        )
    
        data = response.json()
        assert_that(data).contains("credential_exchange_id")
        assert_that(data).has_state("offer-sent")
        assert_that(data).has_protocol_version(protocol_version)
        assert_that(data).has_attributes(sample_credential_attributes)
        assert_that(data).has_schema_id(schema_definition.id)
    
        cred_ex_id = data["credential_exchange_id"]
    
        try:
            invitation_response = await faber_client.post(
                OOB_BASE_PATH + "/create-invitation",
                json={
                    "create_connection": False,
                    "use_public_did": False,
                    "attachments": [{"id": cred_ex_id[3:], "type": "credential-offer"}],
                },
            )
            assert_that(invitation_response.status_code).is_equal_to(200)
    
            invitation = (invitation_response.json())["invitation"]
    
            thread_id = invitation["requests~attach"][0]["data"]["json"]["@id"]
    
            accept_response = await alice_member_client.post(
                OOB_BASE_PATH + "/accept-invitation",
                json={"invitation": invitation},
            )
    
            oob_record = accept_response.json()
    
            assert_that(accept_response.status_code).is_equal_to(200)
            assert_that(oob_record).contains("created_at", "oob_id", "invitation")
>           assert await check_webhook_state(
                client=alice_member_client,
                topic="credentials",
                state="offer-received",
                filter_map={
                    "thread_id": thread_id,
                },
            )

app/tests/e2e/issuer/test_indy_credentials.py:73: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 73 in app/tests/e2e/issuer/test_indy_credentials.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_indy_credentials.test_send_credential_oob[clean-clean-clean-clean-v2]

httpx.ConnectError: All connection attempts failed
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

faber_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7fced230d970>
schema_definition = CredentialSchema(id='Bo9W24g9VmLCnWopu5LJJm:2:test_schema:28.78.5', name='test_schema', version='28.78.5', attribute_names=['name', 'speed', 'age'])
credential_definition_id = 'R5xD9XxcVJHcgQ7bcAe79T:3:CL:16904:tag'
alice_member_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7fced2325700>
protocol_version = 'v2'

    @pytest.mark.anyio
    @pytest.mark.parametrize("protocol_version", ["v1", "v2"])
    async def test_send_credential_oob(
        faber_client: RichAsyncClient,
        schema_definition: CredentialSchema,
        credential_definition_id: str,
        alice_member_client: RichAsyncClient,
        protocol_version: str,
    ):
        credential = {
            "protocol_version": protocol_version,
            "indy_credential_detail": {
                "credential_definition_id": credential_definition_id,
                "attributes": sample_credential_attributes,
            },
        }
    
        response = await faber_client.post(
            CREDENTIALS_BASE_PATH + "/create-offer",
            json=credential,
        )
    
        data = response.json()
        assert_that(data).contains("credential_exchange_id")
        assert_that(data).has_state("offer-sent")
        assert_that(data).has_protocol_version(protocol_version)
        assert_that(data).has_attributes(sample_credential_attributes)
        assert_that(data).has_schema_id(schema_definition.id)
    
        cred_ex_id = data["credential_exchange_id"]
    
        try:
            invitation_response = await faber_client.post(
                OOB_BASE_PATH + "/create-invitation",
                json={
                    "create_connection": False,
                    "use_public_did": False,
                    "attachments": [{"id": cred_ex_id[3:], "type": "credential-offer"}],
                },
            )
            assert_that(invitation_response.status_code).is_equal_to(200)
    
            invitation = (invitation_response.json())["invitation"]
    
            thread_id = invitation["requests~attach"][0]["data"]["json"]["@id"]
    
            accept_response = await alice_member_client.post(
                OOB_BASE_PATH + "/accept-invitation",
                json={"invitation": invitation},
            )
    
            oob_record = accept_response.json()
    
            assert_that(accept_response.status_code).is_equal_to(200)
            assert_that(oob_record).contains("created_at", "oob_id", "invitation")
>           assert await check_webhook_state(
                client=alice_member_client,
                topic="credentials",
                state="offer-received",
                filter_map={
                    "thread_id": thread_id,
                },
            )

app/tests/e2e/issuer/test_indy_credentials.py:73: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 107 in app/tests/e2e/test_connections.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_connections.test_get_connections[clean-clean]

httpx.ConnectError: All connection attempts failed
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

bob_member_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7fe83fd19760>
alice_member_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7fe83fd08f20>

    @pytest.mark.anyio
    async def test_get_connections(
        bob_member_client: RichAsyncClient,
        alice_member_client: RichAsyncClient,
    ):
        connection_alias = "TempAliceBobConnection"
    
>       bob_and_alice_connection = await create_bob_alice_connection(
            alice_member_client, bob_member_client, alias=connection_alias
        )

app/tests/e2e/test_connections.py:107: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
app/tests/util/connections.py:90: in create_bob_alice_connection
    await assert_both_connections_ready(
app/tests/util/connections.py:53: in assert_both_connections_ready
    await assert_both_webhooks_received(
app/tests/util/webhooks.py:132: in assert_both_webhooks_received
    results = await asyncio.gather(
app/tests/util/webhooks.py:128: in check_webhook
    return await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 1 in app/tests/e2e/issuer/test_indy_credentials.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_indy_credentials.test_send_credential[clean-clean-clean-clean-clean-v1]

failed on setup with "httpx.ConnectError: All connection attempts failed"
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio', args = ()
kwargs = {'alice_member_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fced234a2a0>, 'faber_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fced230d970>, 'test_mode': 'clean'}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fced1fe74d0>

    def wrapper(*args, anyio_backend, **kwargs):  # type: ignore[no-untyped-def]
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(func):
                yield from runner.run_asyncgen_fixture(func, kwargs)
            else:
>               yield runner.run_fixture(func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1987: in run_fixture
    retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1957: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1932: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_connections.py:46: in faber_and_alice_connection
    bob_alice_connection = await create_connection_by_test_mode(
app/tests/util/connections.py:169: in create_connection_by_test_mode
    return await create_bob_alice_connection(
app/tests/util/connections.py:90: in create_bob_alice_connection
    await assert_both_connections_ready(
app/tests/util/connections.py:53: in assert_both_connections_ready
    await assert_both_webhooks_received(
app/tests/util/webhooks.py:132: in assert_both_webhooks_received
    results = await asyncio.gather(
app/tests/util/webhooks.py:128: in check_webhook
    return await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 227 in app/tests/e2e/test_connections.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_connections.test_bob_and_alice_connect[clean-clean]

httpx.ConnectTimeout
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectTimeout

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectTimeout

The above exception was the direct cause of the following exception:

bob_member_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7fe83fd09910>
alice_member_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7fe83fd28d10>

    @pytest.mark.anyio
    async def test_bob_and_alice_connect(
        bob_member_client: RichAsyncClient,
        alice_member_client: RichAsyncClient,
    ):
        invitation_response = await bob_member_client.post(
            f"{BASE_PATH}/create-invitation",
        )
        invitation = invitation_response.json()
    
        accept_response = await alice_member_client.post(
            f"{BASE_PATH}/accept-invitation",
            json={"invitation": invitation["invitation"]},
        )
        connection_record = accept_response.json()
    
>       assert await check_webhook_state(
            client=alice_member_client,
            topic="connections",
            state="completed",
            filter_map={
                "connection_id": connection_record["connection_id"],
            },
        )

app/tests/e2e/test_connections.py:227: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectTimeout

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectTimeout

Check failure on line 1 in app/tests/e2e/issuer/test_indy_credentials.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_indy_credentials.test_send_credential[clean-clean-clean-clean-clean-v2]

failed on setup with "httpx.ConnectError: All connection attempts failed"
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio', args = ()
kwargs = {'alice_member_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fced2345640>, 'faber_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fced230d970>, 'test_mode': 'clean'}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fced1fe74d0>

    def wrapper(*args, anyio_backend, **kwargs):  # type: ignore[no-untyped-def]
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(func):
                yield from runner.run_asyncgen_fixture(func, kwargs)
            else:
>               yield runner.run_fixture(func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1987: in run_fixture
    retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1957: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1932: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_connections.py:46: in faber_and_alice_connection
    bob_alice_connection = await create_connection_by_test_mode(
app/tests/util/connections.py:169: in create_connection_by_test_mode
    return await create_bob_alice_connection(
app/tests/util/connections.py:90: in create_bob_alice_connection
    await assert_both_connections_ready(
app/tests/util/connections.py:53: in assert_both_connections_ready
    await assert_both_webhooks_received(
app/tests/util/webhooks.py:132: in assert_both_webhooks_received
    results = await asyncio.gather(
app/tests/util/webhooks.py:128: in check_webhook
    return await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 1 in app/tests/e2e/issuer/test_indy_credentials.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_indy_credentials.test_send_credential_request[clean-clean-clean-clean-clean-v1]

failed on setup with "httpx.ConnectError: All connection attempts failed"
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio', args = ()
kwargs = {'alice_member_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fced23448f0>, 'faber_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fced230d970>, 'test_mode': 'clean'}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fced1fe74d0>

    def wrapper(*args, anyio_backend, **kwargs):  # type: ignore[no-untyped-def]
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(func):
                yield from runner.run_asyncgen_fixture(func, kwargs)
            else:
>               yield runner.run_fixture(func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1987: in run_fixture
    retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1957: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1932: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_connections.py:46: in faber_and_alice_connection
    bob_alice_connection = await create_connection_by_test_mode(
app/tests/util/connections.py:169: in create_connection_by_test_mode
    return await create_bob_alice_connection(
app/tests/util/connections.py:90: in create_bob_alice_connection
    await assert_both_connections_ready(
app/tests/util/connections.py:53: in assert_both_connections_ready
    await assert_both_webhooks_received(
app/tests/util/webhooks.py:132: in assert_both_webhooks_received
    results = await asyncio.gather(
app/tests/util/webhooks.py:128: in check_webhook
    return await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 1 in app/tests/e2e/issuer/test_indy_credentials.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_indy_credentials.test_send_credential_request[clean-clean-clean-clean-clean-v2]

failed on setup with "httpx.ConnectError: All connection attempts failed"
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio', args = ()
kwargs = {'alice_member_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fced23458e0>, 'faber_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fced230d970>, 'test_mode': 'clean'}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fced1fe74d0>

    def wrapper(*args, anyio_backend, **kwargs):  # type: ignore[no-untyped-def]
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(func):
                yield from runner.run_asyncgen_fixture(func, kwargs)
            else:
>               yield runner.run_fixture(func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1987: in run_fixture
    retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1957: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1932: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_connections.py:46: in faber_and_alice_connection
    bob_alice_connection = await create_connection_by_test_mode(
app/tests/util/connections.py:169: in create_connection_by_test_mode
    return await create_bob_alice_connection(
app/tests/util/connections.py:90: in create_bob_alice_connection
    await assert_both_connections_ready(
app/tests/util/connections.py:53: in assert_both_connections_ready
    await assert_both_webhooks_received(
app/tests/util/webhooks.py:132: in assert_both_webhooks_received
    results = await asyncio.gather(
app/tests/util/webhooks.py:128: in check_webhook
    return await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 163 in app/tests/e2e/issuer/test_indy_credentials.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_indy_credentials.test_create_offer[clean-clean-clean-v1]

httpx.ConnectError: All connection attempts failed
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

faber_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7fced230d970>
schema_definition = CredentialSchema(id='Bo9W24g9VmLCnWopu5LJJm:2:test_schema:28.78.5', name='test_schema', version='28.78.5', attribute_names=['name', 'speed', 'age'])
credential_definition_id = 'R5xD9XxcVJHcgQ7bcAe79T:3:CL:16904:tag'
protocol_version = 'v1'

    @pytest.mark.anyio
    @pytest.mark.parametrize("protocol_version", ["v1", "v2"])
    async def test_create_offer(
        faber_client: RichAsyncClient,
        schema_definition: CredentialSchema,
        credential_definition_id: str,
        protocol_version: str,
    ):
        credential = {
            "protocol_version": protocol_version,
            "indy_credential_detail": {
                "credential_definition_id": credential_definition_id,
                "attributes": sample_credential_attributes,
            },
        }
    
        response = await faber_client.post(
            CREDENTIALS_BASE_PATH + "/create-offer",
            json=credential,
        )
    
        data = response.json()
        assert_that(data).contains("credential_exchange_id")
        assert_that(data).has_state("offer-sent")
        assert_that(data).has_protocol_version(protocol_version)
        assert_that(data).has_attributes(sample_credential_attributes)
        assert_that(data).has_schema_id(schema_definition.id)
    
        cred_ex_id = data["credential_exchange_id"]
        try:
>           assert await check_webhook_state(
                client=faber_client,
                topic="credentials",
                state="offer-sent",
                filter_map={
                    "credential_exchange_id": cred_ex_id,
                },
            )

app/tests/e2e/issuer/test_indy_credentials.py:163: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 163 in app/tests/e2e/issuer/test_indy_credentials.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_indy_credentials.test_create_offer[clean-clean-clean-v2]

httpx.ConnectError: All connection attempts failed
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

faber_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7fced230d970>
schema_definition = CredentialSchema(id='Bo9W24g9VmLCnWopu5LJJm:2:test_schema:28.78.5', name='test_schema', version='28.78.5', attribute_names=['name', 'speed', 'age'])
credential_definition_id = 'R5xD9XxcVJHcgQ7bcAe79T:3:CL:16904:tag'
protocol_version = 'v2'

    @pytest.mark.anyio
    @pytest.mark.parametrize("protocol_version", ["v1", "v2"])
    async def test_create_offer(
        faber_client: RichAsyncClient,
        schema_definition: CredentialSchema,
        credential_definition_id: str,
        protocol_version: str,
    ):
        credential = {
            "protocol_version": protocol_version,
            "indy_credential_detail": {
                "credential_definition_id": credential_definition_id,
                "attributes": sample_credential_attributes,
            },
        }
    
        response = await faber_client.post(
            CREDENTIALS_BASE_PATH + "/create-offer",
            json=credential,
        )
    
        data = response.json()
        assert_that(data).contains("credential_exchange_id")
        assert_that(data).has_state("offer-sent")
        assert_that(data).has_protocol_version(protocol_version)
        assert_that(data).has_attributes(sample_credential_attributes)
        assert_that(data).has_schema_id(schema_definition.id)
    
        cred_ex_id = data["credential_exchange_id"]
        try:
>           assert await check_webhook_state(
                client=faber_client,
                topic="credentials",
                state="offer-sent",
                filter_map={
                    "credential_exchange_id": cred_ex_id,
                },
            )

app/tests/e2e/issuer/test_indy_credentials.py:163: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 1 in app/tests/e2e/verifier/test_verifier.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_verifier.test_accept_proof_request[clean-clean-clean-clean-clean-clean-trust_registry-v1]

failed on setup with "httpx.ConnectError: All connection attempts failed"
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio', args = ()
kwargs = {'alice_member_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e8d10920>, 'faber_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e8db1dc0>, 'test_mode': 'clean'}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fe0e95eab40>

    def wrapper(*args, anyio_backend, **kwargs):  # type: ignore[no-untyped-def]
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(func):
                yield from runner.run_asyncgen_fixture(func, kwargs)
            else:
>               yield runner.run_fixture(func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1987: in run_fixture
    retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1957: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1932: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_connections.py:46: in faber_and_alice_connection
    bob_alice_connection = await create_connection_by_test_mode(
app/tests/util/connections.py:169: in create_connection_by_test_mode
    return await create_bob_alice_connection(
app/tests/util/connections.py:90: in create_bob_alice_connection
    await assert_both_connections_ready(
app/tests/util/connections.py:53: in assert_both_connections_ready
    await assert_both_webhooks_received(
app/tests/util/webhooks.py:132: in assert_both_webhooks_received
    results = await asyncio.gather(
app/tests/util/webhooks.py:128: in check_webhook
    return await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 1 in app/tests/e2e/verifier/test_verifier.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_verifier.test_accept_proof_request[clean-clean-clean-clean-clean-clean-trust_registry-v2]

failed on setup with "httpx.ConnectError: All connection attempts failed"
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio', args = ()
kwargs = {'alice_member_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e8dce4b0>, 'faber_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e8db1dc0>, 'test_mode': 'clean'}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fe0e95eab40>

    def wrapper(*args, anyio_backend, **kwargs):  # type: ignore[no-untyped-def]
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(func):
                yield from runner.run_asyncgen_fixture(func, kwargs)
            else:
>               yield runner.run_fixture(func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1987: in run_fixture
    retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1957: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1932: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_connections.py:46: in faber_and_alice_connection
    bob_alice_connection = await create_connection_by_test_mode(
app/tests/util/connections.py:169: in create_connection_by_test_mode
    return await create_bob_alice_connection(
app/tests/util/connections.py:90: in create_bob_alice_connection
    await assert_both_connections_ready(
app/tests/util/connections.py:53: in assert_both_connections_ready
    await assert_both_webhooks_received(
app/tests/util/webhooks.py:132: in assert_both_webhooks_received
    results = await asyncio.gather(
app/tests/util/webhooks.py:128: in check_webhook
    return await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 1 in app/tests/e2e/verifier/test_verifier.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_verifier.test_accept_proof_request[clean-clean-clean-clean-clean-clean-default-v1]

failed on setup with "httpx.ConnectError: All connection attempts failed"
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio', args = ()
kwargs = {'alice_member_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e8dd0080>, 'faber_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e8db1dc0>, 'test_mode': 'clean'}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fe0e95eab40>

    def wrapper(*args, anyio_backend, **kwargs):  # type: ignore[no-untyped-def]
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(func):
                yield from runner.run_asyncgen_fixture(func, kwargs)
            else:
>               yield runner.run_fixture(func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1987: in run_fixture
    retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1957: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1932: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_connections.py:46: in faber_and_alice_connection
    bob_alice_connection = await create_connection_by_test_mode(
app/tests/util/connections.py:169: in create_connection_by_test_mode
    return await create_bob_alice_connection(
app/tests/util/connections.py:90: in create_bob_alice_connection
    await assert_both_connections_ready(
app/tests/util/connections.py:53: in assert_both_connections_ready
    await assert_both_webhooks_received(
app/tests/util/webhooks.py:132: in assert_both_webhooks_received
    results = await asyncio.gather(
app/tests/util/webhooks.py:128: in check_webhook
    return await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 1 in app/tests/e2e/verifier/test_verifier.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_verifier.test_accept_proof_request[clean-clean-clean-clean-clean-clean-default-v2]

failed on setup with "httpx.ConnectError: All connection attempts failed"
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio', args = ()
kwargs = {'alice_member_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e8db8fb0>, 'faber_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e8db1dc0>, 'test_mode': 'clean'}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fe0e95eab40>

    def wrapper(*args, anyio_backend, **kwargs):  # type: ignore[no-untyped-def]
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(func):
                yield from runner.run_asyncgen_fixture(func, kwargs)
            else:
>               yield runner.run_fixture(func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1987: in run_fixture
    retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1957: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1932: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_connections.py:46: in faber_and_alice_connection
    bob_alice_connection = await create_connection_by_test_mode(
app/tests/util/connections.py:169: in create_connection_by_test_mode
    return await create_bob_alice_connection(
app/tests/util/connections.py:90: in create_bob_alice_connection
    await assert_both_connections_ready(
app/tests/util/connections.py:53: in assert_both_connections_ready
    await assert_both_webhooks_received(
app/tests/util/webhooks.py:132: in assert_both_webhooks_received
    results = await asyncio.gather(
app/tests/util/webhooks.py:128: in check_webhook
    return await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 1 in app/tests/e2e/verifier/test_verifier.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_verifier.test_get_proof_and_get_proofs[clean-clean-clean-clean-clean-clean-v1]

failed on setup with "httpx.ConnectError: All connection attempts failed"
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio', args = ()
kwargs = {'acme_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e8d113a0>, 'acme_verifier': CreateTenan...updated_at='2024-08-20T14:13:53.097279Z', image_url='https://aries.ca/images/sample.png', group_id='TenantGroup'), ...}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fe0e95eab40>

    def wrapper(*args, anyio_backend, **kwargs):  # type: ignore[no-untyped-def]
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(func):
                yield from runner.run_asyncgen_fixture(func, kwargs)
            else:
>               yield runner.run_fixture(func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1987: in run_fixture
    retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1957: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1932: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_connections.py:96: in acme_and_alice_connection
    bob_alice_connection = await create_connection_by_test_mode(
app/tests/util/connections.py:169: in create_connection_by_test_mode
    return await create_bob_alice_connection(
app/tests/util/connections.py:90: in create_bob_alice_connection
    await assert_both_connections_ready(
app/tests/util/connections.py:53: in assert_both_connections_ready
    await assert_both_webhooks_received(
app/tests/util/webhooks.py:132: in assert_both_webhooks_received
    results = await asyncio.gather(
app/tests/util/webhooks.py:128: in check_webhook
    return await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 1 in app/tests/e2e/verifier/test_verifier.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_verifier.test_get_proof_and_get_proofs[clean-clean-clean-clean-clean-clean-v2]

failed on setup with "httpx.ConnectError: All connection attempts failed"
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio', args = ()
kwargs = {'acme_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e8d113a0>, 'acme_verifier': CreateTenan...updated_at='2024-08-20T14:13:55.614166Z', image_url='https://aries.ca/images/sample.png', group_id='TenantGroup'), ...}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fe0e95eab40>

    def wrapper(*args, anyio_backend, **kwargs):  # type: ignore[no-untyped-def]
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(func):
                yield from runner.run_asyncgen_fixture(func, kwargs)
            else:
>               yield runner.run_fixture(func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1987: in run_fixture
    retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1957: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1932: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_connections.py:96: in acme_and_alice_connection
    bob_alice_connection = await create_connection_by_test_mode(
app/tests/util/connections.py:169: in create_connection_by_test_mode
    return await create_bob_alice_connection(
app/tests/util/connections.py:90: in create_bob_alice_connection
    await assert_both_connections_ready(
app/tests/util/connections.py:53: in assert_both_connections_ready
    await assert_both_webhooks_received(
app/tests/util/webhooks.py:132: in assert_both_webhooks_received
    results = await asyncio.gather(
app/tests/util/webhooks.py:128: in check_webhook
    return await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 260 in app/tests/e2e/test_connections.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_connections.test_get_connections_paginated[clean-clean]

httpx.ConnectError: All connection attempts failed
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

bob_member_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7fe83fd00650>
alice_member_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7fe840fc5af0>

    @pytest.mark.anyio
    async def test_get_connections_paginated(
        bob_member_client: RichAsyncClient, alice_member_client: RichAsyncClient
    ):
        num_connections_to_test = 5
        test_alias = "test_pagination"
    
        bob_alice_connections: List[BobAliceConnect] = []
        try:
            for _ in range(num_connections_to_test):
>               bob_and_alice_connection = await create_bob_alice_connection(
                    alice_member_client, bob_member_client, alias=test_alias
                )

app/tests/e2e/test_connections.py:260: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
app/tests/util/connections.py:90: in create_bob_alice_connection
    await assert_both_connections_ready(
app/tests/util/connections.py:53: in assert_both_connections_ready
    await assert_both_webhooks_received(
app/tests/util/webhooks.py:132: in assert_both_webhooks_received
    results = await asyncio.gather(
app/tests/util/webhooks.py:128: in check_webhook
    return await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 1 in app/tests/e2e/verifier/test_verifier.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_verifier.test_get_credentials_for_request[clean-clean-clean-clean-clean-clean-v1]

failed on setup with "httpx.ConnectError: All connection attempts failed"
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio', args = ()
kwargs = {'alice_member_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e791a8d0>, 'faber_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e8db1dc0>, 'test_mode': 'clean'}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fe0e95eab40>

    def wrapper(*args, anyio_backend, **kwargs):  # type: ignore[no-untyped-def]
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(func):
                yield from runner.run_asyncgen_fixture(func, kwargs)
            else:
>               yield runner.run_fixture(func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1987: in run_fixture
    retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1957: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1932: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_connections.py:46: in faber_and_alice_connection
    bob_alice_connection = await create_connection_by_test_mode(
app/tests/util/connections.py:169: in create_connection_by_test_mode
    return await create_bob_alice_connection(
app/tests/util/connections.py:90: in create_bob_alice_connection
    await assert_both_connections_ready(
app/tests/util/connections.py:53: in assert_both_connections_ready
    await assert_both_webhooks_received(
app/tests/util/webhooks.py:132: in assert_both_webhooks_received
    results = await asyncio.gather(
app/tests/util/webhooks.py:128: in check_webhook
    return await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 1 in app/tests/e2e/verifier/test_verifier.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_verifier.test_get_credentials_for_request[clean-clean-clean-clean-clean-clean-v2]

failed on setup with "httpx.ConnectError: All connection attempts failed"
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio', args = ()
kwargs = {'alice_member_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e8db0a10>, 'faber_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e8db1dc0>, 'test_mode': 'clean'}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fe0e95eab40>

    def wrapper(*args, anyio_backend, **kwargs):  # type: ignore[no-untyped-def]
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(func):
                yield from runner.run_asyncgen_fixture(func, kwargs)
            else:
>               yield runner.run_fixture(func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1987: in run_fixture
    retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1957: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1932: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_connections.py:46: in faber_and_alice_connection
    bob_alice_connection = await create_connection_by_test_mode(
app/tests/util/connections.py:169: in create_connection_by_test_mode
    return await create_bob_alice_connection(
app/tests/util/connections.py:90: in create_bob_alice_connection
    await assert_both_connections_ready(
app/tests/util/connections.py:53: in assert_both_connections_ready
    await assert_both_webhooks_received(
app/tests/util/webhooks.py:132: in assert_both_webhooks_received
    results = await asyncio.gather(
app/tests/util/webhooks.py:128: in check_webhook
    return await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError

Check failure on line 1 in app/tests/e2e/verifier/test_verifier.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_verifier.test_saving_of_presentation_exchange_records[clean-clean-clean-clean-clean-clean-False-False-v1]

failed on setup with "httpx.ConnectError: All connection attempts failed"
Raw output
@contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
>           yield

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:373: in handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request
    raise exc from None
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request
    response = await connection.handle_async_request(
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:99: in handle_async_request
    raise exc
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:76: in handle_async_request
    stream = await self._connect(request)
/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py:122: in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py:30: in connect_tcp
    return await self._backend.connect_tcp(
/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp
    with map_exceptions(exc_map):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, <class 'OSError'>: <class 'httpcore.ConnectError'>, <class 'anyio.BrokenResourceError'>: <class 'httpcore.ConnectError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py:14: ConnectError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio', args = ()
kwargs = {'alice_member_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e79e5970>, 'faber_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fe0e8db1dc0>, 'test_mode': 'clean'}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fe0e95eab40>

    def wrapper(*args, anyio_backend, **kwargs):  # type: ignore[no-untyped-def]
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(func):
                yield from runner.run_asyncgen_fixture(func, kwargs)
            else:
>               yield runner.run_fixture(func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1987: in run_fixture
    retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1957: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:1932: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_connections.py:46: in faber_and_alice_connection
    bob_alice_connection = await create_connection_by_test_mode(
app/tests/util/connections.py:169: in create_connection_by_test_mode
    return await create_bob_alice_connection(
app/tests/util/connections.py:90: in create_bob_alice_connection
    await assert_both_connections_ready(
app/tests/util/connections.py:53: in assert_both_connections_ready
    await assert_both_webhooks_received(
app/tests/util/webhooks.py:132: in assert_both_webhooks_received
    results = await asyncio.gather(
app/tests/util/webhooks.py:128: in check_webhook
    return await check_webhook_state(
app/tests/util/webhooks.py:60: in check_webhook_state
    event = await listener.wait_for_event(
app/tests/util/sse_listener.py:72: in wait_for_event
    async with client.stream(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1617: in stream
    response = await self.send(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1661: in send
    response = await self._send_handling_auth(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1689: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1726: in _send_handling_redirects
    response = await self._send_single_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_client.py:1763: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:372: in handle_async_request
    with map_httpcore_exceptions():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.ConnectError: All connection attempts failed

/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py:86: ConnectError