Why is this no longer being done from the onError method?