Anoncreds aca-py update backchannel to use new endpoints for schema and cred def
ianco opened this issue · 1 comments
ianco commented
When running as --wallet-type askar-anoncreds
aca-py presents different endpoints for the schema and cred def when running in anoncreds mode. Aca-py backchannel needs to call the appropriate endpoints when running as askar-anoncreds
vs askar
.
Command:
BACKCHANNEL_EXTRA_acapy_main="{\"wallet-type\":\"askar-anoncreds\"}" ./manage run -d acapy-main -t ... etc
Error:
2023-12-08 16:56:15,454 aries_cloudagent.admin.server DEBUG Incoming request: GET /schemas/created?schema_version=1.0.0&schema_name=test_schema.Acme
2023-12-08 16:56:15,454 aries_cloudagent.admin.server DEBUG Match info: <MatchInfoError 404: Not Found>
2023-12-08 16:56:15,455 aries_cloudagent.admin.server DEBUG Body: None
2023-12-08 16:56:15,455 aries_cloudagent.admin.server ERROR Handler error with exception: Not Found
=================
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aries_cloudagent/admin/server.py", line 179, in ready_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/aries_cloudagent/admin/server.py", line 216, in debug_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp_apispec/middlewares.py", line 22, in validation_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/aries_cloudagent/admin/server.py", line 449, in setup_context
return await task
File "/usr/local/lib/python3.9/asyncio/futures.py", line 284, in __await__
yield self # This tells Task to wait for completion.
File "/usr/local/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
future.result()
File "/usr/local/lib/python3.9/asyncio/futures.py", line 201, in result
raise self._exception
File "/usr/local/lib/python3.9/asyncio/tasks.py", line 256, in __step
result = coro.send(None)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_urldispatcher.py", line 933, in _handle
raise self._http_exception
aiohttp.web_exceptions.HTTPNotFound: Not Found
jamshale commented
This has been completed. Possibly more work coming but having an askar-anoncreds
wallet type creates the correct schemas and cred defs and some selective tests are working.