Skip to content

Commit 5b8441b

Browse files
authored
⬆️ Upgrade to ACA-Py 0.11.0 (#558)
* test new cloudcontroller * bump default project version * ⬆️ use 0.11.0 ACA-Py image * 🎨 * use status code from response in case of exception * 🎨 update exception messages * ⬆️ use latest cloudcontroller
1 parent 5e96839 commit 5b8441b

13 files changed

+18
-14
lines changed

app/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from shared.log_config import get_logger
3232

3333
OPENAPI_NAME = os.getenv("OPENAPI_NAME", "OpenAPI")
34-
PROJECT_VERSION = os.getenv("PROJECT_VERSION", "0.10.5")
34+
PROJECT_VERSION = os.getenv("PROJECT_VERSION", "0.11.0")
3535

3636
logger = get_logger(__name__)
3737
prod = strtobool(os.environ.get("prod", "True"))

app/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
aiohttp~=3.9.0
2-
aries-cloudcontroller==0.10.1b2
2+
aries-cloudcontroller==0.11.0
33
base58~=2.1.1
44
fastapi~=0.104.1
55
fastapi_websocket_pubsub~=0.3.8

app/routes/issuer.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ async def send_credential(
141141
)
142142
except ApiException as e:
143143
logger.warning(
144-
"ApiException was caught while sending credentials, with message `{}`.",
144+
"An ApiException was caught while sending credentials, with message `{}`.",
145145
e.reason,
146146
)
147147
raise CloudApiException(
148-
f"Failed to create or send credential: {e}", 500
148+
f"Failed to create or send credential: {e.reason}", e.status
149149
) from e
150150

151151
if result:

app/routes/oob.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ async def connect_to_public_did(
107107
108108
Returns:
109109
---
110-
ConnRecord
110+
Connection
111111
The connection record
112112
"""
113113
bound_logger = logger.bind(body=body)

app/services/acapy_ledger.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ async def register_nym_on_ledger(
148148
e.reason,
149149
)
150150
# if not nym_response.success:
151-
raise CloudApiException("Error registering NYM on ledger.") from e
151+
raise CloudApiException(
152+
f"Error registering NYM on ledger: {e.reason}.", e.status
153+
) from e
152154

153155

154156
async def accept_taa_if_required(aries_controller: AcaPyClient):

app/services/revocation_registry.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ async def revoke_credential(
313313
"An ApiException was caught while revoking credential. The error message is: '{}'.",
314314
e.reason,
315315
)
316-
raise CloudApiException("Failed to revoke credential.", 400) from e
316+
raise CloudApiException(
317+
f"Failed to revoke credential: {e.reason}.", e.status
318+
) from e
317319

318320
if not auto_publish_to_ledger:
319321
try:

dockerfiles/agents/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.10.5
1+
FROM ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.11.0
22

33
ADD configuration ./configuration
44
ADD scripts ./scripts

dockerfiles/agents/Dockerfile.agent

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.10.5
1+
FROM ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.11.0
22

33
USER root
44

dockerfiles/agents/Dockerfile.author.agent

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.10.5
1+
FROM ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.11.0
22

33
USER root
44

endorser/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
aries-cloudcontroller==0.10.1b2
1+
aries-cloudcontroller==0.11.0
22
fastapi_websocket_pubsub~=0.3.8
33
httpx~=0.25.1
44
loguru~=0.7.0

trustregistry/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
logger = get_logger(__name__)
1414

1515
OPENAPI_NAME = os.getenv("OPENAPI_NAME", "Trust Registry")
16-
PROJECT_VERSION = os.getenv("PROJECT_VERSION", "0.10.5")
16+
PROJECT_VERSION = os.getenv("PROJECT_VERSION", "0.11.0")
1717

1818

1919
def create_app():

webhooks/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def create_app() -> FastAPI:
1717
OPENAPI_NAME = os.getenv(
1818
"OPENAPI_NAME", "Aries Cloud API: Webhooks and Server-Sent Events"
1919
)
20-
PROJECT_VERSION = os.getenv("PROJECT_VERSION", "0.10.5")
20+
PROJECT_VERSION = os.getenv("PROJECT_VERSION", "0.11.0")
2121

2222
application = FastAPI(
2323
title=OPENAPI_NAME,

webhooks/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
aioredis~=2.0.1
2-
aries-cloudcontroller==0.10.1b2
2+
aries-cloudcontroller==0.11.0
33
dependency-injector~=4.41.0
44
fastapi~=0.104.1
55
fastapi_websocket_pubsub~=0.3.8

0 commit comments

Comments
 (0)