Skip to content

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

@ff137

Description

@ff137

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions