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

OOB generation broken #443

Closed
esune opened this issue Mar 20, 2024 · 0 comments
Closed

OOB generation broken #443

esune opened this issue Mar 20, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@esune
Copy link
Member

esune commented Mar 20, 2024

Generating OOB proof-request payloads broke, likely as a consecuence of this PR to enforce using a local DID.

The error being thrown is the following:

controller-1     | http://aca-py:8077 "GET /wallet/did/public HTTP/1.1" 200 16
controller-1     | {"status_code": 500, "process_time": 0.10548281669616699, "event": "failed to process a request", "logger": "api.main", "level": "info", "timestamp": "2024-03-20T23:42:08.324265Z"}
controller-1     | {"event": "Traceback (most recent call last):\n  File \"pydantic/main.py\", line 522, in pydantic.main.BaseModel.parse_obj\nTypeError: 'NoneType' object is not iterable\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n  File \"/app/api/main.py\", line 90, in logging_middleware\n    response: Response = await call_next(request)\n                         ^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py\", line 84, in call_next\n    raise app_exc\n  File \"/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py\", line 70, in coro\n    await self.app(scope, receive_or_disconnect, send_no_error)\n  File \"/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py\", line 83, in __call__\n    await self.app(scope, receive, send)\n  File \"/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py\", line 79, in __call__\n    raise exc\n  File \"/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py\", line 68, in __call__\n    await self.app(scope, receive, sender)\n  File \"/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py\", line 21, in __call__\n    raise e\n  File \"/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n    await self.app(scope, receive, send)\n  File \"/usr/local/lib/python3.11/site-packages/starlette/routing.py\", line 718, in __call__\n    await route.handle(scope, receive, send)\n  File \"/usr/local/lib/python3.11/site-packages/starlette/routing.py\", line 276, in handle\n    await self.app(scope, receive, send)\n  File \"/usr/local/lib/python3.11/site-packages/starlette/routing.py\", line 66, in app\n    response = await func(request)\n               ^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/fastapi/routing.py\", line 237, in app\n    raw_response = await run_endpoint_function(\n                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/fastapi/routing.py\", line 163, in run_endpoint_function\n    return await dependant.call(**values)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/api/routers/oidc.py\", line 138, in get_authorize\n    wallet_did = client.get_wallet_did(public=True)\n                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/api/core/acapy/client.py\", line 124, in get_wallet_did\n    did = WalletDid.parse_obj(resp_payload)\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"pydantic/main.py\", line 525, in pydantic.main.BaseModel.parse_obj\npydantic.error_wrappers.ValidationError: 1 validation error for WalletDid\n__root__\n  WalletDid expected dict not NoneType (type=type_error)\n", "logger": "api.main", "level": "error", "timestamp": "2024-03-20T23:42:08.351949Z"}
@esune esune added the bug Something isn't working label Mar 20, 2024
@esune esune moved this to Assignment Ready in CDT Enterprise Apps Mar 20, 2024
@esune esune self-assigned this Mar 21, 2024
@esune esune moved this from Assignment Ready to Assigned in CDT Enterprise Apps Mar 21, 2024
@esune esune moved this from Assigned to In Progress in CDT Enterprise Apps Mar 22, 2024
@esune esune moved this from In Progress to In Review in CDT Enterprise Apps Mar 22, 2024
@esune esune removed the status in CDT Enterprise Apps Mar 25, 2024
@esune esune moved this to In Review in CDT Enterprise Apps Mar 25, 2024
@esune esune moved this from In Review to Complete in CDT Enterprise Apps Mar 25, 2024
@loneil loneil closed this as completed Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants