Skip to content

➕ 📝 Disable Redoc, replace Swagger with Scalar #3922

➕ 📝 Disable Redoc, replace Swagger with Scalar

➕ 📝 Disable Redoc, replace Swagger with Scalar #3922

GitHub Actions / JUnit Test Report Regression failed Sep 27, 2024 in 0s. View latest attempt.

1112 tests run, 1072 passed, 39 skipped, 1 failed.

Annotations

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

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report Regression

test_predicate_proofs.test_predicate_proofs[reuse-reuse-reuse-reuse-reuse-reuse-<=-v1]

failed on setup with "fastapi.exceptions.HTTPException: 404: {"detail":"Record not found: credential_exchange_v10/479abd8c-b7ab-48ac-96c6-96264c13ca2f."}"
Raw output
self = <shared.util.rich_async_client.RichAsyncClient object at 0x7fa1e81c0b00>
url = '/v1/issuer/credentials/v1-479abd8c-b7ab-48ac-96c6-96264c13ca2f/request'
kwargs = {'json': {}}, response = <Response [404 Not Found]>, code = 404
message = '{"detail":"Record not found: credential_exchange_v10/479abd8c-b7ab-48ac-96c6-96264c13ca2f."}'
log_message = 'Tenant Alice - HTTP POST `/v1/issuer/credentials/v1-479abd8c-b7ab-48ac-96c6-96264c13ca2f/request` failed. Status code: 404. Response: `{"detail":"Record not found: credential_exchange_v10/479abd8c-b7ab-48ac-96c6-96264c13ca2f."}`.'

    async def post(self, url: str, **kwargs) -> Response:
        try:
            response = await super().post(url, **kwargs)
            if self.raise_status_error:
>               response.raise_for_status()  # Raise exception for 4xx and 5xx status codes

shared/util/rich_async_client.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <Response [404 Not Found]>

    def raise_for_status(self) -> Response:
        """
        Raise the `HTTPStatusError` if one occurred.
        """
        request = self._request
        if request is None:
            raise RuntimeError(
                "Cannot call `raise_for_status` as the request "
                "instance has not been set on this response."
            )
    
        if self.is_success:
            return self
    
        if self.has_redirect_location:
            message = (
                "{error_type} '{0.status_code} {0.reason_phrase}' for url '{0.url}'\n"
                "Redirect location: '{0.headers[location]}'\n"
                "For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/{0.status_code}"
            )
        else:
            message = (
                "{error_type} '{0.status_code} {0.reason_phrase}' for url '{0.url}'\n"
                "For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/{0.status_code}"
            )
    
        status_class = self.status_code // 100
        error_types = {
            1: "Informational response",
            3: "Redirect response",
            4: "Client error",
            5: "Server error",
        }
        error_type = error_types.get(status_class, "Invalid status code")
        message = message.format(self, error_type=error_type)
>       raise HTTPStatusError(message, request=request, response=self)
E       httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://governance-tenant-web.cloudapi.dev.didxtech.com/tenant/v1/issuer/credentials/v1-479abd8c-b7ab-48ac-96c6-96264c13ca2f/request'
E       For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404

/usr/local/lib/python3.12/site-packages/httpx/_models.py:763: HTTPStatusError

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 0x7fa1e81c0b00>, 'credential_definiti...2d0-437f-ac29-4f5be102724d'), 'faber_client': <shared.util.rich_async_client.RichAsyncClient object at 0x7fa1e8169010>}
backend_name = 'asyncio', backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7fa1eaf753d0>

    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:83: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:2201: 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:2171: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:2138: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/credentials.py:57: in issue_credential_to_alice
    response = await alice_member_client.post(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <shared.util.rich_async_client.RichAsyncClient object at 0x7fa1e81c0b00>
url = '/v1/issuer/credentials/v1-479abd8c-b7ab-48ac-96c6-96264c13ca2f/request'
kwargs = {'json': {}}, response = <Response [404 Not Found]>, code = 404
message = '{"detail":"Record not found: credential_exchange_v10/479abd8c-b7ab-48ac-96c6-96264c13ca2f."}'
log_message = 'Tenant Alice - HTTP POST `/v1/issuer/credentials/v1-479abd8c-b7ab-48ac-96c6-96264c13ca2f/request` failed. Status code: 404. Response: `{"detail":"Record not found: credential_exchange_v10/479abd8c-b7ab-48ac-96c6-96264c13ca2f."}`.'

    async def post(self, url: str, **kwargs) -> Response:
        try:
            response = await super().post(url, **kwargs)
            if self.raise_status_error:
                response.raise_for_status()  # Raise exception for 4xx and 5xx status codes
        except HTTPStatusError as e:
            code = e.response.status_code
            message = e.response.text
            log_message = f"{self.name} POST `{url}` failed. Status code: {code}. Response: `{message}`."
            logger.error(log_message)
    
>           raise HTTPException(status_code=code, detail=message) from e
E           fastapi.exceptions.HTTPException: 404: {"detail":"Record not found: credential_exchange_v10/479abd8c-b7ab-48ac-96c6-96264c13ca2f."}

shared/util/rich_async_client.py:40: HTTPException