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

Tever.reload receiving a viring.RegStateRecord rather than the expected Serder instance #667

Closed
kentbull opened this issue Feb 1, 2024 · 1 comment
Assignees

Comments

@kentbull
Copy link
Contributor

kentbull commented Feb 1, 2024

Problem

I am getting the following error because the Tever.reload function is expecting a Serder as noted in the docs for Tever yet it is receiving a viring.RegStateRecord dataclass object (as observed during a debug session).

This happens on GET to /registries for KERIA, yet it seems the issue belongs in this repository since the problem appears to be in the Tever class or eventing

2024-02-01 14:00:23 [FALCON] [ERROR] GET /identifiers/{my_aid}/registries => Traceback (most recent call last):
  File "/path/to/keripy/src/keri/vdr/viring.py", line 43, in __getitem__
    return super(rbdict, self).__getitem__(k)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'EFHa1-xmPo0t8LeO9fTEvlw36p8HXKfeMgAX1sDePIuZ'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "falcon/app.py", line 365, in falcon.app.App.__call__
  File "/path/to/keria/src/keria/app/credentialing.py", line 88, in on_get
    print(f'is this working? {registry.tever.state()}')
                              ^^^^^^^^^^^^^^
  File "/path/to/keripy/src/keri/vdr/credentialing.py", line 198, in tever
    return self.reger.tevers[self.regk]
           ~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/path/to/keripy/src/keri/vdr/viring.py", line 50, in __getitem__
    tever = eventing.Tever(stt=rsr, db=self.db, reger=self.reger)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/path/to/keripy/src/keri/vdr/eventing.py", line 724, in __init__
    self.reload(stt)
  File "/path/to/keripy/src/keri/vdr/eventing.py", line 772, in reload
    if k not in ksn.ked:
                ^^^^^^^
AttributeError: 'RegStateRecord' object has no attribute 'ked'

Versions

SignifyTS commit 5be18192520f63eba83011379049f42e83b02ee0 (jan 18 2024)
KERIA rc-0.1.0
KERIPY rc-1.1.0

Reproduction Steps

  1. Start witnesses
  2. Start KERIA
  3. Create two identifiers with SignifyTS and KERIA, one the issuer and one the holder.
  4. Issue a credential from the issuer to the holder AID
  5. Admit the credential with the holder AID
  6. Shut down KERIA and restart it
  7. issue the GET to /registries with KERIA
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

No branches or pull requests

2 participants