Closed severinbeauvais closed 3 years ago
As Severin noticed before, our handling when quitting/cancelling payments has extended functionality that can cause potential data issues. Not sure the extent of the issues but this console error presents itself after cancelling said payment.
This has turned into a general "handle network errors" ticket... The following error handling is broken:
What I found/learned:
@Action
method should never throw an exception (you MUST handle it)setAppError()
(which leads to the error modal){ text, failed }
object is stored in lieu of NR data and may not be handled
if (nr?.failed)...
Please verify the following:
Existing Name Request tab
Name Request summary page
Upgrade Priority modal
Download Receipts modal
Cancel and Refund modal
Cancel Name Request modal
Extend Expiry (aka Reapply) modal
New Name Search tab
Note that some pages still do not have functional error handling -- see #5898 and #5899.
*
to simulate a network error, go to dev console → network tab → set network = offline
*
all network errors should display some notification to the user, either red text on form or an error modal
If I search for an existing NR and the API fails to respond (eg, timeout after 30s or other error), then the UI does not handle this error well.