try catching request error