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

feat: display API errors as alerts in the UI #71

Merged
merged 1 commit into from
May 9, 2024
Merged

Conversation

hskiba
Copy link
Member

@hskiba hskiba commented May 9, 2024

Summary

Sometimes when there are spot interruptions and instances cannot be started, the page will silently "eat" errors when trying to start instances. This is a quick change to at least return the API error as an alert to give an idea of what the problem is.

Better formatting and capturing of these errors should be added in future PRs.

Test Plan

Use AWSReadOnlyAccess IAM credentials to start up an instance of river-guide. The page should load fine. Attempt to start the instances. You should receive an alert like this:

image

@hskiba hskiba requested review from zeteoh and vecknishwaran May 9, 2024 07:14
@hskiba hskiba marked this pull request as ready for review May 9, 2024 07:14
@hskiba hskiba merged commit a8ba699 into main May 9, 2024
5 checks passed
@hskiba hskiba deleted the error-handling branch May 9, 2024 08:59
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.

2 participants