Fix handling of github network errors