retry github api 3 times on timeout