Rescue Octokit errors on GitHub import
Zendesk: https://gitlab.zendesk.com/agent/tickets/76208 Sentry: https://sentry.gitlap.com/gitlab/gitlabcom/issues/27069/
Octokit will throw an exception if certain problems exist with an API call. For example, the linked Sentry error shows that the API threw Octokit::NotFound
. We should rescue Octokit errors and gracefully recover.
In the case of the GitLab.com user mentioned in the Zendesk issue, they were trying to import all their GitHub repos. One error caused all the rest of the projects to fail to import.
cc/ @dbalexandre