Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retry button to submission error view #1214

Merged

Conversation

ebma
Copy link
Member

@ebma ebma commented Feb 15, 2021

  • Show a 'Retry' button next to the 'Close' button of the submission progress if the transaction submission fails
  • Show human-readable translated error message on submission timeout error

The issue of submission timeouts was not related to horizon but to the timeout specified for the promise queue here. That's why the transaction often went through although the "An unknown error occured" message was shown.
Instead of increasing this timeout I changed the error message shown in the submission progress so that the error translation is used if error.response is undefined (i.e. the error is not a submission error).
This means that a "Request timed out" message (i18n translation for timeout-error) is shown once the timeout of 10 seconds is reached on transaction submission. If the user clicks on the newly added "Retry" button he is likely to see a "Successful" message pretty fast since the transaction was already accepted by the network.

Closes #1208.

@ebma ebma force-pushed the feature/1208-add-retry-button-to-submission-error-view branch from 3939526 to 141916d Compare February 17, 2021 15:38
@ebma ebma marked this pull request as ready for review February 17, 2021 15:50
Copy link
Contributor

@andywer andywer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@andywer andywer merged commit 4fcafc1 into master Feb 18, 2021
@andywer andywer deleted the feature/1208-add-retry-button-to-submission-error-view branch February 18, 2021 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "retry" button to submission error view
2 participants