Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

[Bug]: no feedback about invalid LN invoice #54

@tril0byte

Description

@tril0byte

Describe the bug

when the invoice is pasted and it's wrong there's an error written to the log but not provided to the user. Actually the log is pretty clear saying "Must include only alpha numeric characters", this message should be presented to the user in red text near the field that contains the error.

Reproduce

  1. Log into Citadel
  2. click Lightning
  3. click Send
  4. paste an invoice that contains a space in it. Animation of a line moving back and forth will occur with no feedback about what is wrong.

Citadel version

0.1.3

Operating system

Debian

Log output

middleware         |   InternalServerError: Must include only alpha numeric characters.
middleware         |       at Object.throw (/app/node_modules/koa/lib/context.js:97:11)
middleware         |       at Module.isAlphanumeric (file:///app/node_modules/@runcitadel/utils/lib/typeHelper.js:15:18)
middleware         |       at file:///app/routes/v1/lnd/lightning.js:45:16
middleware         |       at dispatch (/app/node_modules/koa-compose/index.js:42:32)
middleware         |       at file:///app/middlewares/auth.js:44:15
middleware         |       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions