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

IPEX Grant with chained credentials #155

Closed
lenkan opened this issue Dec 1, 2023 · 0 comments · Fixed by #144
Closed

IPEX Grant with chained credentials #155

lenkan opened this issue Dec 1, 2023 · 0 comments · Fixed by #144

Comments

@lenkan
Copy link
Collaborator

lenkan commented Dec 1, 2023

Currently, there is no integration test for issuing a chained credential. I created a script in #144 when I reported WebOfTrust/keria#135 in KERIA.

I have updated the script in #144 to use the new /ipex/grant endpoint introduced in WebOfTrust/keria#137. But I did not get it to work. KERIA crashed after the POST. I used KERIA from commit 97c63d06b9eb781cfccf4f7fe95d957442b728c6 .

Traceback (most recent call last):
  File "/home/lenkan/code/keria/.venv/bin/keria", line 33, in <module>
    sys.exit(load_entry_point('keria', 'console_scripts', 'keria')())
  File "/home/lenkan/code/keria/src/keria/app/cli/keria.py", line 31, in main
    raise ex
  File "/home/lenkan/code/keria/src/keria/app/cli/keria.py", line 25, in main
    doers = args.handler(args)
  File "/home/lenkan/code/keria/src/keria/app/cli/commands/start.py", line 20, in <lambda>
    parser.set_defaults(handler=lambda args: launch(args))
  File "/home/lenkan/code/keria/src/keria/app/cli/commands/start.py", line 74, in launch
    runAgent(name=args.name,
  File "/home/lenkan/code/keria/src/keria/app/cli/commands/start.py", line 107, in runAgent
    directing.runController(doers=doers, expire=expire)
  File "/home/lenkan/code/keria/.venv/lib/python3.10/site-packages/keri/app/directing.py", line 665, in runController
    doist.do(doers=doers)
  File "/home/lenkan/code/keria/.venv/lib/python3.10/site-packages/hio/base/doing.py", line 156, in do
    self.recur()  # increments .tyme runs recur context
  File "/home/lenkan/code/keria/.venv/lib/python3.10/site-packages/hio/base/doing.py", line 275, in recur
    tock = dog.send(self.tyme)  # yielded tock == 0.0 means re-run asap
  File "/home/lenkan/code/keria/.venv/lib/python3.10/site-packages/hio/base/doing.py", line 922, in do
    self.done = self.recur(tyme=tyme)  # equv of doist.recur
  File "/home/lenkan/code/keria/.venv/lib/python3.10/site-packages/hio/base/doing.py", line 1026, in recur
    tock = dog.send(tyme)  # yielded tock == 0.0 means re-run asap
  File "/home/lenkan/code/keria/.venv/lib/python3.10/site-packages/hio/base/doing.py", line 922, in do
    self.done = self.recur(tyme=tyme)  # equv of doist.recur
  File "/home/lenkan/code/keria/.venv/lib/python3.10/site-packages/hio/base/doing.py", line 1026, in recur
    tock = dog.send(tyme)  # yielded tock == 0.0 means re-run asap
  File "/home/lenkan/code/keria/.venv/lib/python3.10/site-packages/hio/base/doing.py", line 922, in do
    self.done = self.recur(tyme=tyme)  # equv of doist.recur
  File "/home/lenkan/code/keria/src/keria/app/agenting.py", line 524, in recur
    rec = msg["rec"]
KeyError: 'rec'

I have not had a chance to look further into it yet, so there might be an issue in the integration test rather than the server code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant