Skip to content

Swap endpoint returns non-standard error code 99999 for unknown keyset (should be 12001) #237

@SatsAndSports

Description

@SatsAndSports

very low priority for me. Feel free to close this if it's just not important.

When submitting a swap request with outputs targeting an unknown keyset ID, nutmix returns error code 99999 instead of the NUT-00 standardized code 12001 ("Keyset is not known")

I found this testing the cashu spilman channel code, where I sometimes test it against nutmix instead of just against the cdk mint

Also, the response should include a detail, not just a code.

Observed: HTTP 400 {"code":99999}

Expected: HTTP 400 {"detail": "Keyset is not known", "code": 12001}

Version. I'm at commit 5ed997a5e36acff2c16d04f91d1598713d4e0d51, which I think it 0.4.2, even though VERSION says 0.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions