Details
-
Type: Task
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Story Points:1
-
Epic Link:
-
Sprint:Fall 3 2021 Sep 13 - Sep 24, Fall 4 2021 Sep 27 - Oct 8, Fall 5 2021 Oct 11 - Oct 22
Description
Find the best ways to indicate to the user about errors that can be caused either by Cyverse APIs, Bioviz Connect, or user input especially when Cyverse is down or maintenance is underway
To redirect users in case of an outage or an error in any of the Terrain APIs, we could create a "broken robot" error page to redirect users.
1) Any errors caused due to access issues are caught in getSessionId function in views.py as the getAccessToken API is called from this function.
2) Issues about user data are caught in getRootPathUser in views.py(or getUserDetails function in getUserDetail.py). This function is used to get the root path of the user's file directory and the only parameter passed here is the access token.
Redirecting users to the error page upon receiving an error in these two functions makes a lot of sense to me because there is not a lot of mistakes that we, as developers, or the users can make in these API calls. So the errors could only most certainly come from Cyverse. Currently, we are handling only the authorization errors in these functions.