lnbits / lndhub

Access lnbits from BlueWallet or Zeus
MIT License
2 stars 6 forks source link

Invoice creation fails #12

Closed dennisreimann closed 10 months ago

dennisreimann commented 1 year ago

Invoice creation with the /ext/addinvoice endpoint fails.

Payload:

{
    "amt" : 21,
    "memo" : "test" 
}

Response:

{
    "detail": "Failed to create invoice"
}

General connection works, the API seems to accept requests — testing this I came across another unexpected problem: The code looks like there is a fallback for memo, but if omitted the API returns:

{
    "detail": "1 validation error for Request\nbody -> memo\n  field required (type=value_error.missing)"
}

Using LNbits v0.10.6 on Umbrel.