AOSSIE - Australian Open Source Software Innovation and Education

[CarbonFootprint-Action] Improve error handling and failure management

You need to first complete the beginner task of deploying the Action on your own before taking this task. The beginner task is names as: "[CarbonFootprint-Action] Learn to deploy the Action to your own Actions on Google project."

Currently, whenever a REST request fails - the action responds that it failed. The REST response contains an error message, this error message needs to be checked and error reporting within the action should convey the reason whenever possible.

Further improve the error detection with HTTP response status codes and improve Action's responses accordingly.

You can find the code here: https://gitlab.com/aossie/CarbonAssistant-Function/tree/master

An example how currently the error detection is done is given at: https://gitlab.com/aossie/CarbonAssistant-Function/blob/master/functions/appliances.js#L89

Expected Outcome:

Create a PR to the project with the necessary changes.

Task tags

  • bugreporting
  • coding
  • testing

Students who completed this task

MLarionov

Task type

  • code Code
close

2018