From b6943b73e11a4704220632e6fc6fb7205cfee01c Mon Sep 17 00:00:00 2001 From: Wade Barnes Date: Fri, 31 Dec 2021 06:19:29 -0800 Subject: [PATCH] Fix: Update delete credential call - The agent admin API signature for deleting credentials has changed. These breaking changes were made in v0.5.5: - https://github.com/hyperledger/aries-cloudagent-python/commit/2b556c683c6ee34d582c21e2b3fad0d770a472f4 - https://github.com/hyperledger/aries-cloudagent-python/commit/f1610cdc82d91ad655b641bddebc040a37676775 Signed-off-by: Wade Barnes --- .../agent_webhooks/management/commands/delete_topic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/vcr-server/agent_webhooks/management/commands/delete_topic.py b/server/vcr-server/agent_webhooks/management/commands/delete_topic.py index 03dae1e46..86b849bd1 100644 --- a/server/vcr-server/agent_webhooks/management/commands/delete_topic.py +++ b/server/vcr-server/agent_webhooks/management/commands/delete_topic.py @@ -33,8 +33,8 @@ async def delete_topic(self, *args, **options): for credential in topic.credentials.all(): self.stdout.write(" ... " + credential.credential_id + " ...") try: - response = requests.post( - f"{settings.AGENT_ADMIN_URL}/credential/{credential.credential_id}/remove", + response = requests.delete( + f"{settings.AGENT_ADMIN_URL}/credential/{credential.credential_id}", headers=settings.ADMIN_REQUEST_HEADERS, ) response.raise_for_status()