SenteraLLC / QASM

QASM is a single-serve web application that runs using React and Electron, with the ability to run customizable QA or labeling jobs from a local host, a packaged windows .exe, or a statically hosted S3 website.
http://qasm-demo-frontend.s3-website-us-east-1.amazonaws.com/
2 stars 1 forks source link

API Errors and better response handling in general #24

Open joshua-dean opened 9 months ago

joshua-dean commented 9 months ago

Launching an app in S3 mode (such as for the demo) fails unless a .env file is present, which requires terraform to be deployed. #22 is dealing with the AWS configuration specifically, however this and other errors could be more verbosely handled in general.

For example, adding a catch to hit_terraform_api that returns {"data":[]} on a 404 allows the app to launch, rather than a blank screen with a non-descriptive console error. All frontend-backend interactions should have contingencies for various error codes that include a visual reflection of what went wrong, especially for everything in the demo.