OpenWaterFoundation / owf-tstool-timesheetscom-plugin

Open Water Foundation plugin for timesheets.com API
GNU General Public License v3.0
0 stars 0 forks source link

Error handling - need to detect errors and pass to high level code #3

Closed smalers closed 8 months ago

smalers commented 11 months ago

The web service will return an error message if there is a problem. Need to propagate the message to higher-level code so that the user is aware.

smalers commented 8 months ago

Better error handling has been added when reading global data. The code handles HTTP 420 errors generated by the service, due to too many requests in a short amount of time. If the error occurs, a wait and retry occurs, with lengthening wait time up to a maximum limit. If an error reading global data occurs, an error will be shown in the ReadTimesheetsCom command so that the user knows there is a problem. Close this issue.