handle error in github repo requests