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

🐛 "Credential definition is in wallet, but not on ledger" #877

Open
ff137 opened this issue Jul 23, 2024 · 0 comments
Open

🐛 "Credential definition is in wallet, but not on ledger" #877

ff137 opened this issue Jul 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ff137
Copy link
Collaborator

ff137 commented Jul 23, 2024

A credential definition can go into an un-publishable state, if it ever fails to be written to the ledger. This is because it is only written to the ledger if it does not already exist in the wallet ... and it will remain in the wallet if ledger publishing fails for whatever reason ...

Creating a new cred def with POST /v1/definitions/credentials may therefore result in a bad request error:

400: Credential definition `cred_def_id` is in wallet `wallet_name` but not on ledger `ledger_name`

The only current workaround is to try creating a different cred def, with a new tag.

This is a known bug in ACA-Py:

A simple solution would be to contribute some logic to allow the "if not on ledger and exists in wallet, raise Exception" step to be bypassed, such that publishing to ledger can be retried.

@ff137 ff137 added the bug Something isn't working label Jul 23, 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

1 participant