add error check to GetConditions API req