question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error message too verbose/cryptic on "Create an Invoice" field validation

See original GitHub issue

As discussed with @Zaxounette on chat.btcpayserver.org, the error message returned after a failed validation of the Currency field on the “Create an Invoice” page is a verbose log that is not suitable for nontechnical end users:

image

Elsewhere in BTCPay Server, the Currency error message is simple and cogent:

image

In the interest of improving UI/UX as well as maintaining consistency with other parts of BTCPay Server, a simple “Invalid currency” message should suffice. The detailed error logs above could go in the internal logs (if they are not already).

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
pavlenexcommented, Jul 29, 2021

@bolatovumar I think that error message makes sense. Perhaps we should document this as well so we can link to it for more in-depth explanation @Zaxounette @britttttk it’s a common error.

1reaction
bolatovumarcommented, Jul 25, 2021

It could be that the current rate provider stopped providing these rates, or is offline.

Yeah, the error message would have to be something generic like “Please make sure you entered a valid currency symbol, rate provider is configured in store settings and your configured rate provider is online and provides rates for your selected currency.”. It’s a bit long but should cover most cases?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Primary Note: Invoice Validation Program Finishes In Error ...
Symptoms. Trying to validate invoices the following error messages can arise: 1) If the validation is performed using the On-Line validation:
Read more >
Create Invoice in QuickBooks Online results in “A business ...
I am trying to have our webform from Squarespace automatically create a invoice in QBO. I keep getting following error message: “Test Action ......
Read more >
Invoice Validation did not process Invoice Id Due to Tax Error
Invoice Validation Failing with the error message: Invoice Validation did not process Invoice Id Due to Tax Error (Doc ID 1518930.1).
Read more >
Invoice Validation Error when sending invoices to Xero
User is trying to send CORE invoices to Xero, but gets the following errors: Invoice Validation ERROR - The description field is...
Read more >
Getting a Tax Error Message When Exporting an Invoice to ...
Business Validation Error: Make sure all your transactions have a sales tax rate before you save. You've done all the options, but nothing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found