Add error checks for AGO response failure