getAlby / nostr-wallet-connect

Nostr Wallet Connect (NIP-47) application to allow apps to connect to your node
https://nwc.getalby.com
Apache License 2.0
105 stars 31 forks source link

Error responses missing `result_type` #142

Closed benthecarman closed 1 year ago

benthecarman commented 1 year ago

When parsing error responses from a NWC event from alby I'll get something like

{
  "error": {
    "code": "INTERNAL",
    "message": "Something went wrong while paying invoice: not enough balance. Make sure you have at least 1% reserved for potential fees"
  }
}

the error responses are supposed to include result_type so we know which method was used for this error.